Click here to Skip to main content
15,885,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am new to jqgrid treeview. It is not working. I am trying to do with JSON data.

I have already binded basic attributes like parent, isleaf, expanded and loaded as below
JavaScript
{ name: 'level', width: 50, sortable: false, align: 'center', hidden: false },
{ name: 'parent', width: 50, sortable: false, align: 'center', hidden: false },
{ name: 'isLeaf', width: 50, sortable: false, align: 'center', hidden: false },
{ name: 'expanded', width: 50, sortable: false, align: 'center', hidden: false },
{ name: 'loaded', width: 50, sortable: false, align: 'center', hidden: false },

My Grid initialization:
height: 'auto',
hidegrid: false,
height: 140,
loadui: 'enable',
shrinkToFit: true,
autowidth: true,
treeGrid: true,
treeGridModel: 'adjacency',
treedatatype: "local",
ExpandColumn: 'Attribute1',
ExpandColClick: false,
Posted
Updated 29-Mar-15 23:30pm
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900