Title: treegrid remote load of node data not including queryParams Post by: tomhj 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? Title: Re: treegrid remote load of node data not including queryParams Post by: stworthy on May 30, 2013, 01:45:27 AM Try to download the updated treegrid plugin from http://www.jeasyui.com/easyui/plugins/jquery.treegrid.js.
Title: Re: treegrid remote load of node data not including queryParams Post by: tomhj on May 30, 2013, 09:42:02 AM Works great - thanks!
|