Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:treegrid [2011/01/28 18:34]
pabrams
wiki:treegrid [2017/12/12 17:20] (current)
admin
Line 1: Line 1:
 ====== TreeGrid ====== ====== TreeGrid ======
-Treegrid is a way to represent hierarchical data in grid. \\ Treegrid supports both the Nested Set model and the Adjacency model. Good articles describing the Nested Set model can be found here: \\+Treegrid is a way to represent hierarchical data in grid. \\ Treegrid supports both the Nested Set model and the Adjacency model. Good articles describing the Nested Set model can be found here: \\ 
  
-http://dev.mysql.com/​tech-resources/​articles/​hierarchical-data.html \\  +http://ftp.ntu.edu.tw/​MySQL/​tech-resources/​articles/​hierarchical-data.html \\  
-http://​www.sitepoint.com/​article/​hierarchical-data-database ​+http://​www.sitepoint.com/​article/​hierarchical-data-database ​.
  
 ===== Installation ===== ===== Installation =====
Line 23: Line 23:
 |tree_root_level|numeric|Determines the level where the root element begins when treeGrid is enabled|0| |tree_root_level|numeric|Determines the level where the root element begins when treeGrid is enabled|0|
  
-<​note>​If the gridview option in the grid is set to true the treeGrid will not be constructed instead that set to true.</​note> ​..... ?? what???+<​note>​If the gridview option in the grid is set to true the treeGrid will not be constructed instead that set to true. </​note> ​
  
 The treeReader property adds dynamically columns to the colModel property of the basic grid when treeGrid property is set to true. The treeReader property adds dynamically columns to the colModel property of the basic grid when treeGrid property is set to true.
Line 56: Line 56:
  
 ^Method^Parameters^Description^ ^Method^Parameters^Description^
 +|addChildNode| nodeid, parentid, data| Add a node in the tree according the value of the parentid parameter. The nodeid is the unique values in the row. If set to empty string the method gets the next max number + 1 from the data. if parendid is null the node is added as root. If the parentid is valid id of existing row the data is added as child of the that row. Data is a data to be inserted.|
 |collapseNode|record|Collapse the node at specified record| |collapseNode|record|Collapse the node at specified record|
 |collapseRow|record|Collapse the current row| |collapseRow|record|Collapse the current row|
Line 75: Line 76:
   * Currently adding nodes with addRowData is not supported.   * Currently adding nodes with addRowData is not supported.
   * <​del>​Currently it is not recommended to combine inline editing and form editing with treegrid, or the expanded column will not be editable. </​del>​   * <​del>​Currently it is not recommended to combine inline editing and form editing with treegrid, or the expanded column will not be editable. </​del>​
-  * Adding nodes is currently not supported.+  * <del>Adding nodes is currently not supported.</​del>​
   * [[Pager]] functionality currently disabled for treeGrid   * [[Pager]] functionality currently disabled for treeGrid
 +  * Local searching is not supported at this time
   * When we initialize the grid and the data is read, the datatype is automatically set to local. This is required because treegrid supports autoloading tree nodes. This means that, for speed or efficiency, you can load the data only for the root level first and load the data for a particular child node only when the operator clicks to expand that node. The grid will determine that there is no data and try to load the node from the server, but in this case the data that is sent to the server has to have additional parameters. Setting datatype to local permits intervening before the request is made to build the request correctly. See the  [[Nested Set Model]] and  [[Adjacency Model]] on what is posted to the server   * When we initialize the grid and the data is read, the datatype is automatically set to local. This is required because treegrid supports autoloading tree nodes. This means that, for speed or efficiency, you can load the data only for the root level first and load the data for a particular child node only when the operator clicks to expand that node. The grid will determine that there is no data and try to load the node from the server, but in this case the data that is sent to the server has to have additional parameters. Setting datatype to local permits intervening before the request is made to build the request correctly. See the  [[Nested Set Model]] and  [[Adjacency Model]] on what is posted to the server

QR Code
QR Code wiki:treegrid (generated for current page)