This question is locked. New answers and comments are not allowed.
I don't find such feature when I develop a pure AJAX application.
I can just use the dataBind method to implement it. The solution has a little bug, the icon at the left cannot be displayed.
I can just use the dataBind method to implement it. The solution has a little bug, the icon at the left cannot be displayed.
var treeview = $('#catalogTreeView'); var parentNode = treeview.find("input[value='" + data.model.parentID + "']").closest('.t-item'); var treeObject = treeview.data("tTreeView"); treeObject.collapse(parentNode); treeObject.dataBind(parentNode, data.model.updatedNodes); treeObject.collapse(expand);