PDA

View Full Version : Override PagingToolbar parameters



defcon1
5 Feb 2010, 5:40 AM
Hi,

I am extending a application with ExtJS and I am using a PagingToolbar. If
I press the change page button, a parameter "start" is send to the server.

My existing servlet wants to have "startAt" as parameter name and I canīt
change it because it used so many times on other things ...

Is there a way to override the paramter names?

Many thanks .... ;)

tobiu
5 Feb 2010, 5:48 AM
ich would try to override the onLoad and doLoad - methods of the PagingToolbar and replace the name of the param there.

kind regards,
tobiu

radubrehar
5 Feb 2010, 5:55 AM
Try modifying the paramNames.start property on the store.
Eg:


var store = pagingToolbar.store
store.paramNames.start = "startAt" //by default it is "start"