How do you keep checkbox of grid items selected after process is done, its unchecking the checkbox that was selected after operation is done.
I have written row up down operations but it looses selected one after first up or down-
I want to keep what was selected as checked-
https://docs.telerik.com/kendo-ui/api/j ... tselection
How do you keep checkbox of grid items selected after process is done
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact:
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact:
Re: How do you keep checkbox of grid items selected after process is done
I have below script but aware process does not recognize the selection although it shows as selected, I have to manually uncheck and check the box for aware.
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");
});
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");
});