I have below code which automatically selects 4th row and chekbox is also checked but when I call a process it says
"Please select one or more items".
If I manually select then only it works. How do I automatically select a specific row and have aware recognize it as selected in kendogrid
below code works-
widget.bind("dataBound", function(e) {
var data =widget._data;
console.log('ami');
var selectedItem = data[3];
console.log(selectedItem);var grid1=$(".k-grid").eq(1).data('kendoGrid');
widget.select(selectedItem);
var tr1 = $("#grid").find("[data-uid='" + selectedItem.uid + "']");
console.log(tr1);
widget.tbody.find("tr[data-uid='" + selectedItem.uid + "']")
.addClass("k-state-selected")
.find(".k-checkbox")
.attr("checked", "checked");
});
multi select process call and item select via jquery
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact: