Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jul 06, 2007 20:23
open dhtmlx forum
I'm usig the First column of my grid as cntr type which keeps incrementing itself as i keep adding the rows . Is it possible to make the ID of the row also equal to the value shown by the first column

I'm using the First column of my grid as cntr type which keeps incrementing itself as i keep adding the rows . Is it possible to make the ID of the row also equal to the value shown by the first column . Right now im using your method of generating a random date and keeping that as the ID. How to get the information from cntr and keep that as an ID

Please help me out in this issue
Answer posted on Jul 07, 2007 17:43
The ID of row is main row parameter which identify it, it can be changed by
    grid.changeRowId(..
so it is not safe to do such massive id changing operation ( meanwhile you control id of row while adding, so you can create a row with already necessary ID )

The values shown by cntr exCell are row indexes, so you can always convert them to IDs

    var row_id = grid.getRowId(row_index);
and in back order
    var row_index = grid.getRowIndex(row_id);
Answer posted by sematik (Support) on Nov 30, 2014 18:36

Having solved the problem mentioned above, you may also look through the possible related problems with dhtml tabs and slider control javascript.