After either creating or saving a record in a kendo grid, I need that record selected so that I can populate (or clear) a couple of child grids. This code doesn't work:
I have verifed (using alerts) that the JobKey is as expected and "tr" is a valid row. However the row is never selected. Is there another way to do this?
function gridJobRequestEnd(e) {<
br
> if (e.type == "update" && e.response.Data != null) {<
br
> var gridJob = $("#gridJob").data("kendoGrid");<
br
> var job = gridJob.dataSource.get(e.response.Data[0].JobKey);<
br
> var tr = $("[data-uid='" + job.uid + "']", gridJob.tbody);<
br
> gridJob.select(tr);<
br
> }<
br
> }
I have verifed (using alerts) that the JobKey is as expected and "tr" is a valid row. However the row is never selected. Is there another way to do this?