maithili
Posts: 10
Joined: Tue Nov 24, 2020 12:36 pm

how do you access rowindex in datatable - ionic

Hi,
I need to access the which row has been clicked on - in a datatable - rowindex - in a typescript

I have a datatable - with data - the first column i have edit icon - .On click i want to enable the other columns to make it editable.
For this i need to know which row was clicked.. so only that row will be editable.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Re: how do you access rowindex in datatable - ionic

Hello,

Do you need to get the index or the value of the row?

maithili
Posts: 10
Joined: Tue Nov 24, 2020 12:36 pm

Re: how do you access rowindex in datatable - ionic

Hi,
I need the rowindex.. I want to be able to make the row editable

maithili
Posts: 10
Joined: Tue Nov 24, 2020 12:36 pm

Re: how do you access rowindex in datatable - ionic

Hi I need the rows or the rowindex..
Need to know which row is been selected.
And dynamically change data

i know that Datatable has a variable rows..
but other than that - how to get handle on that variable, how to get rowindex..
Not sure

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Re: how do you access rowindex in datatable - ionic

Please see this tutorial on how to use it: https://docs.appery.io/docs/ionic-4-ngx ... l-advanced

Please see the "selectItem" function there

Return to “Issues”