I can't understand why no matter what I do, when I call the select method on my grid it returns: TypeError: 'undefined' is not an object (evaluating 'o.options').
I plan on selecting it in a dataBound event method. I did try doing that originally. but it failed in the same way. My dataSource format is:
I plan on selecting it in a dataBound event method. I did try doing that originally. but it failed in the same way. My dataSource format is:
[{"id":"CB069D69-5C72-4D87-B4FF-78E8F2B66359","levelsList":"1\\APIDep2"},{"id":"D5968210-FCDA-40EB-A8AB-4E5B44038D83","levelsList":"10\\TCDep10"}]var dataSource = new kendo.data.DataSource({ data: levelsForDisplay, pageSize: 5, }); var gridDiv = $("#levelsGrid").kendoGrid({ height: "100%", columns: [{ field: "levelsList", selectable: "row", headerAttributes: { style: "display: none" }, }], dataSource: dataSource }).data("kendoGrid"); var id = "CB069D69-5C72-4D87-B4FF-78E8F2B66359"; var item = gridDiv.dataSource.get(id); var tr = $("tr[data-uid='" + item.uid + "']", gridDiv.tbody); gridDiv.select(tr);