0
votes

I want to be selected new row after that I add . for edition a selected row I used uid property , so after edition saved , the selected row is selected still. but for add it's not work because uid changes for new row .

private _comebackFromEdit(uid: number) {
    var contact = $("#contact-grid").data("kendoGrid").table.find('tr[data-uid="' + uid + '"]');
    $("#contact-grid").data("kendoGrid").select(contact);
}
1
What event do you fire this method from?callisto

1 Answers

3
votes
var grid = $("#contact-grid").data("kendoGrid");
var row = grid.dataSource.add();
var contact = grid.table.find('tr[data-uid="' + row.uid + '"]');

grid.select(contact);