Hi I have a grid with 3 pages with 20 records on each.
I am trying to select and go to a certain record on a different page.
The issue is I don't know how to do this its easy to do within the page your on using
var grid = $("#ListUserGrid").data("kendoGrid");
grid.select(2);
so i thought it would be as easy as
var grid = $("#ListUserGrid").data("kendoGrid").datasource.data();
grid.select(2);
and obviously that doesn't work
this is what i have at the moment
var grid2 = $("#ListUserGrid").data("kendoGrid").dataSource.data();
if (useridValue > 0)
{
for (var i = 0; i < grid2.length; i++)
{
var t = grid2[i]["UserId"];
arraygrid.push({ "idx": i, "UserId": t });
if (arraygrid[i]["UserId"] == useridValue)
{
//var items = grid2.items();
var idx = arraygrid[i]["idx"];
var loc = grid2[idx];
}
}
itemsToSelect.push(loc);
grid2.select(itemsToSelect);
useridValue = 0;
return;
}
Any help would be appreciated.