tomhj
Newbie

Posts: 40
|
 |
« on: May 30, 2013, 01:01:24 AM » |
|
I have a treegrid defined as:
$('#${tableId}').treegrid({ url: 'LoadData', title: 'My Treegrid', queryParams: {parm1: 1, parm2: 'Test'}, idField: 'id', treeField: 'node', columns: [[{field: 'id', hidden: true},{field: 'node', title: 'Nodes'},{field: 'data', title: 'Some data'}]] });
The initial request for LoadData includes parm1 and parm2. Data returned includes a node with state=closed and no children. So when I click on that node in treegrid, LoadData is requested again, but this time the only parameter passed is id - it seems like queryParams are not being included.
Looking through the jquery.treegrid.js source, I see this in the expand() method:
request(target, row[opts.idField], {id:row[opts.idField]}, true, function(){ if (cc.is(':empty')){ subtree.remove(); } else { _expand(cc); } // _expand(cc); });
Shouldn't it include the queryParams?
|