This question is locked. New answers and comments are not allowed.
How can I determine the index of the selected row in the grid's data source?
For example I've setup the grid list this
and I've got the current selection
I want to determine the corresponding index in the WinJS.Binding.List so that I can update the correct record.
Thanks
Chris
For example I've setup the grid list this
var data = [ { Name: "One", Data: 1 }, { Name: "Two", Data: 2 }, { Name: "Three", Data: 3 }];var list = new WinJS.Binding.List(data); var grid = new Telerik.UI.RadGrid(grid1, { dataSource: list});and I've got the current selection
var dataItem = grid.dataItem(grid.selection[0]);I want to determine the corresponding index in the WinJS.Binding.List so that I can update the correct record.
Thanks
Chris