Changes to edit cells are lost when clicking the next cell or other rows in the TreeList.
Dojo Example adapted from TreeList InCell Editing demo (also attached):
Hello, Jacob,
Thank you for sharing,
We have a similar design for the Sortable when using handlers is required:
https://demos.telerik.com/kendo-ui/sortable/handlers
Currently, the workaround is to add an event handler to the cellClose event and trigger change programmatically to any inputs with the data-bind attribute as well as to any widgets:
cellClose: function(e) {
var input = e.container.find("input[data-bind*='value']");
input.trigger("change");
var numeric = input.data("kendoNumericTextBox");
if(numeric){
numeric.trigger("change");
}
}
https://dojo.telerik.com/IWOSOKiq
It overrides the built-in draggable in two places highlighted below:
filter: "tbody>tr .handler",
hintText: function(span) {
var draggedRow = $(span).closest("tr");
var text = function() { return $(this).text(); };
var separator = "<span class='k-header k-drag-separator'></span>";
return draggedRow.children("td").map(text).toArray().join(separator);
},
I hope more people upvote this item so we can provide it sooner.
Regards,
Alex Hajigeorgieva
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hello James,
This is a limitation of the TreeList and combining dragging with InCell editing is currently not supported scenario. This limitation is documented in the following help article:
https://docs.telerik.com/kendo-ui/controls/data-management/treelist/editing/drag-and-drop-editing
Please excuse us for any inconvenience caused by this and if other questions regarding the TreeList arise, do not hesitate to contact us again.
Regards,
Konstantin Dikov
Progress Telerik