Hi Armand,
Thanks for contacting Syncfusion support.
We have checked your query (“How is sort order handled”). You can achieve your requirement by using sortSettings API in ejTreeView. you can sort the treenodes node by its node text Please refer the below code snippet.
$("#treeView").ejTreeView(
{
fields: { id: "id", parentId: "pid", text: "name", hasChild: "hasChild", dataSource: localData, expanded: "expanded" }, sortSettings: {
allowSorting: true,
sortOrder: ej.sortOrder.Ascending
}
}
); |
To achieve this with your custom field, you should map the custom field as a node Text.
For your convenience, we have attached the sample below,
To know more details about ejTreeView, please refer the below documentation link.
Please let us know if you need further assistance on this.
Regards,
Karthik R