View Full Version : PagingToolbar: adding params to request sent by next button

6 May 2010, 9:29 AM

I have a GridEditor with a PagingToolbar and have added 'From' and 'To' date fields, and "Reload" button to reload the grid based on the From and To values.

What i now need to do is have the first/previous/next/last buttons on the PagingToolbar take account of these "From" and "To" values. I messed with the beforechange event in which I tried reloaded my DataStore using the params - but then the PagingToolbar does it's stuff and reloads without them - overwriting my custom stuff. Thus the grid gets reloaded with the full dataset rather than my limited one.

How can I get the PagingToolbar buttons to send my custom params to the server?


(Excuse me if this has been posted on - I searched but didn't find an answer.)

10 May 2010, 12:30 PM
How does this solution sound ?


10 May 2010, 2:25 PM
Check the documentation for Store.baseParams! They get sent with EVERY request...

12 May 2010, 3:29 AM
Thanks to you both...I'll follow up on both leads!