BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Does any one have any good resources or examples of how to determine the ordinal position (indexof) of child nodes in the controller via a Ajax call? I am able to pass the tree data by returning the results of treeview.getTreeData(), but not determine the changes of the sort order.
I am new to Syncfusion, while the extensions appear provide all the features I am looking for, the documentation is difficult to find. Are there any resources that someone has found which has good implementation examples. Currently, I rely on intellisense for building the controllers and views but am struggling with client side scripts.
function onNodeDrop(args) {
var element = args.droppedNode;
// Gets the child Element of the dropped node
var liElements = element.querySelectorAll('ul li');
var arr = [];
for (var i = 0; i < liElements.length; i++) {
var nodeData = this.getNode(liElements[i]);
arr.push(nodeData);
}
console.log(arr);
$.post("/Home/UpdatedData/", {
data: arr
}, function (child) {
alert(`${child} child items received by the server`)
});
} |