Supports Asp.net2.0, MS Ajax, Postback, CallBack (can be used to load child nodes), Event (Select, Expend, Collaspe, RowCreate, RowDataBound, RowCommand), DataBind
The usage is similar to TreeView and GridView.
principle:
The main class of this control is similar to MS TreeView, including three core classes: TreeGrid, TreeGridNode, and TreeGridRow. TreeGridNode represents a node and can have DataItem attributes, and TreeGridRow represents the row where the node is located. TreeGrid is of course the tree including Nodes. In addition, there are collection classes of TreeGridNode and TreeGridRow.
The difference from TreeView lies in the different presentation methods and view state management.
TreeGrid uses GridView's presentation method and syntax, and the client can control the expansion and collapse of nodes. The display method and syntax of GridView need to define a Template, and the expansion and collapse of client nodes can be controlled using Javascript.
Expand