Jul 17, 2011, 5:46 PM
How to get Index of selected row?
Dear All,
I am very new into ext.net so please excuse my knowledge in it.
I have a grid and i want to insert a new row in the middle of the 2 rows.
For this i have written Javascript as
Is the code that i have written correct?
Regards,
Huzefa
I am very new into ext.net so please excuse my knowledge in it.
I have a grid and i want to insert a new row in the middle of the 2 rows.
For this i have written Javascript as
grid.stopEditing();
var s = grid.getSelectionModel().getSelections()[0];
grid.insertRecord(s);
grid.getView().refresh();
grid.getSelectionModel().selectRow(s);
grid.startEditing(s,1);
the variable 's' is a object of selected row. Can anyone tell me how do i get rowIndex of currently selected row and new inserted row both?Is the code that i have written correct?
Regards,
Huzefa