EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on March 15, 2013, 05:24:31 AM



Title: cannot set queryParams when object first loadad
Post by: devnull on March 15, 2013, 05:24:31 AM
Hi;

When the datagrid is initialized and does it's first load, the queryParams are not sent.

I am unable to set the initial parameters, however once the datagrid has been loaded once, the params do get appended to the queryParams array aftert the "page" and "size" params.



Title: Re: cannot set queryParams when object first loadad
Post by: stworthy on March 15, 2013, 07:33:22 AM
Set 'queryParams' and then these parameters will be sent to server when request remote data.
Code:
<table class="easyui-datagrid" data-options="url:..., queryParams:{productid:'p'}">
</table>
See the code above, the parameter 'productid' with value('p') will be posted to server when loading remove data.