If you have questions or if you want to share your opinion about Aware IM post your message on this forum
#53111 by swiftinitpvtltd
Tue Feb 11, 2020 4:43 pm
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");

});

Who is online

Users browsing this forum: Google [Bot] and 14 guests