easyui treegrid "load" method -
hello want inquire load method easyui treegridi read easyui treegrid documentation url http://jeasyui.com/documentation/treegrid.phpi didn't found treegrid load method, since know treegrid dependencies datagrid, go url http://jeasyui.com/documentation/datagrid.phpin easyui datagrid, load method code format, this$('#dg').datagrid('load',{code: '01',name: 'name01'});
let me explain little code above, code above load datagrid condition, code='01' , name='name01', datagrid url. code , name treated http_post_var in datagrid url php file, farther utilize sql status valuebut, when seek implement datagrid load method in treegrid, below code$('#dg').treegrid('load',{code: '01',name: 'name01'});
it can't send http_post_varis true, easyui treegrid don't have load method datagrid? there other solution load easyui treegrid condition?
you can dynamically load treegrid info using 'loaddata' below,
$.ajax({ type: "post", async : false, url:'someurl.action?code=01&name=name01', success: function(obj) { $('#treegridid').treegrid('loaddata', obj); } });
or by
$('#treegridid').treegrid({ url:'someurl.action?code=01&name=name01'});
jquery-easyui
No comments:
Post a Comment