Forum
18:53
29/12/2010
I apologize if the problem is already solved. but I could not find solutions
After the table updates
using $ ('# treegrid'). trigger ('reloadGrid');
open section is closed and no longer opens properly.
Only helps the full restart page.
first
1
--- 3
--- 4
--- 5
2
open sub-section (JSON)
1
--- 3
--- 4
--- 5
------ 6
------ 7
------ 8
2
and after the $ ('# treegrid'). trigger ('reloadGrid');
1
--- 3
--- 4
--- 5
2
and then opening branches does not work
i tried setGridParam datatype JSON
no result.
jqueryGrid 3.82.
jQuery("#treegrid").jqGrid({
treeGrid: true,
treeGridModel: 'nested',
ExpandColumn : 'total',
url: 'module/json/tree_json.php',
datatype: "json",
mtype: "POST",
colNames:["id","name","","",""],
colModel:[
{name:'id', index:'id', width:50, align:"center", key:true},
{name:'descript', index:'name', width:500, align:"left"},
{name:'total', index:'name', width:150, align:"center"},
{name:'total_used', index:'acc_num', width:150, align:"center"},
{name:'chdate', index:'acc_num', width:150, align:"center"}
],
treeReader : {
level_field: "level",
left_field:"lef",
right_field: "rig",
leaf_field: "isLeaf",
expanded_field: "expanded"
},
onSelectRow: function(id){rightclicid=id;},
onCellSelect: function(id){rightclicid=id;},
onRightClickRow: function(id){rightclicid=id;},
rowNum:500,
altRows : true,
height:'auto',
pager : "#ptreegrid",
jsonReader : {repeatitems: false},
toolbar: [true,"top"],
footerrow : true,
rownumbers: true,
loadonce:false,
multiselect: true,
multiselectWidth: 100,
prmNames:{oper:'do',editoper:'changeshowid'},
caption: "Разделы Ñайта"
});
Most Users Ever Online: 715
Currently Online:
44 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66