I have a grid which I need to refresh after changing a value in another container. this code is being called from the sync container, now I got it to read and refresh the grid but I want it to keep the current selected row(selected index) but my current code keeps sending it back to 0.
function
onAssetGridRequestEnd(e) {
if
(e.type ==
"create"
)
{
//Refresh Grid
var
grid = $(
"#ContainerGrid"
).data(
"kendoGrid"
);
var
dataRows = grid.items();
rowIndex = dataRows.index(grid.select());
grid.dataSource.read();
grid.dataSource.sync();
grid.select(rowIndex);
}
};