Page 1 of 1

how do you access rowindex in datatable - ionic

Posted: Mon Nov 30, 2020 10:32 am
by maithili

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.


Re: how do you access rowindex in datatable - ionic

Posted: Mon Nov 30, 2020 3:30 pm
by Serhii Kulibaba

Hello,

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


Re: how do you access rowindex in datatable - ionic

Posted: Tue Dec 01, 2020 8:22 am
by maithili

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


Re: how do you access rowindex in datatable - ionic

Posted: Wed Dec 02, 2020 12:16 pm
by maithili

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


Re: how do you access rowindex in datatable - ionic

Posted: Wed Dec 02, 2020 6:18 pm
by Serhii Kulibaba

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