support the treegrid??????????

Jul 1, 2011 at 4:28 AM

Is this plugin support the treegrid??????????

if yes: how to do using in this

if not: have any other can realize??????

Coordinator
Jul 1, 2011 at 6:51 AM

Hi,

Our wrapper for the jqGrid tree option is still incomplete.
However, basically you can still configure the grid to render as tree using some hacking:

You can look here http://www.trirand.com/jqgridwiki/doku.php?id=wiki:treegrid to understand what is needed to configure the grid to be rendered as a tree.
The most basic tree configuration requires you use the SetAdditionalArguemnts of the Grid object and add:

"treeGrid: true., treeGridModel: 'adjacency', treeReader = {level_field: 'level',parent_id_field: 'parent', leaf_field: 'isLeaf', expanded_field: 'expanded' }"

And in the data you generate to the grid, you should have (in addition to your standard coluns) the following fields:

level - which tells the grid the ident level of the item
Parent- the id of the parent row
isLeaf- whether or not this item is a leaf
expanded - whether or not this item shoul be expanded by default

We hope to finish the tree implementation as part of the upcoming release (schedued to end of july), but this should be sufficient until then.