Previously, I used Ext. tree. TreePanel to bind a tree-based query. It seems that TreePanel is quite good.
Today, we will try to combine the Ext. menu. Menu menu Menu to add, delete, and modify functions, and implement unlimited binding, as shown in the following figure:
Step 1: TreePanel's unlimited Loading Design:
My data design structure is as follows:
Step 2: Obtain the cascade data structure in the background and return the json data type:
[{"Id":7,"Text":"2011","Leaf":False,"Expanded":True,"Children":[{"Id":8,"Text":"Spring","Leaf":False,"Expanded":True,"Children":[{"Id":21,"Text":"May","Leaf":False,"Expanded":True,"Children":[{"Id":26,"Text":"Week 4","Leaf":False,"Expanded":True,"Children":[{"Id":28,"Text":"Friday","Leaf":True,"Expanded":False,"Children":[]}, {"Id":27,"Text":"Thursday","Leaf":True,"Expanded":False,"Children": []}, {"Id":