I have got a function that selects a row and then move scrolled to show it. Moving scroller is working fine, but selecting row it is not working. How can I select row in grid on client side?
My function
looks like this:
function rowSelect_Show() {
var obj = $("#Grid1").ejGrid("instance");
var rowHeight = obj.getRowHeight();
var selectedRowIndex = 12;
obj.getScrollObject().scrollY(rowHeight * selectedRowIndex);
obj.model.selectedRowIndex = selectedRowIndex;
var objDt = $("#Grid1").data("ejGrid");
objDt.selectedRowsIndexes.push(selectedRowIndex);
}