EasyUI Forum
November 06, 2025, 04:47:27 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: cannot set queryParams when object first loadad  (Read 13669 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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.

« Last Edit: March 15, 2013, 06:29:51 AM by devnull » Logged

-- Licensed User --
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!