I’m using jqgrid tree grid with the following configuration
colModel :
[
{
name:'id',width : 30, editable : false, align:"right",sortable : false, hidden : true, key : true, hidedlg:true
},
{
name:'no',width : 50, editable : false, align:"left", sortable : true,sorttype:"text"
}
},
{
name:'name', width : 300, editable : true, sortable : true, sorttype:"text"
}
],
treeGridModel:'adjacency',
ExpandColumn:'name'
treeGrid: true,
cellEdit: true,
sortable: true,
From the above configuration,name is my expand field,I’m passing level based on some hierarchy from server as json data.The user may wish to change the hierarchy on runtime.So I should change the level and indentation of the name field.I could set the level using “setCell” method but indentation is not updated,how to change the indentation?Please help
Setting of new value for the
levelis not so easy. Simple usage ofsetCellwill not work. Let us you know therowidyou want to changeleveltonewLevelvalue. I think the code should be about the following: