PDA

View Full Version : [CLOSED] Database Pagination using Javascript



iansriley
Apr 03, 2015, 5:56 PM
Hi Danil,

Please suggest me to implement the database pagination for one of my grid view by using Javascript call to web service or Static direct method,

We were implemented server side using Store, Page Proxy and onreadData

just wanted to write a client side method that call the function once we click on the "prev", next","last" and "first" buttons
and get the current page index

Appreciate your feedback in advance...

Daniil
Apr 04, 2015, 4:55 PM
Hi @iansriley,

For WebService please use an AjaxProxy.
http://examples2.ext.net/#/GridPanel/Paging_and_Sorting/JSON_WebService

For a static DirectMethod, please use a PageProxy with a DirectFn option.
http://examples2.ext.net/#/GridPanel/Paging_and_Sorting/DirectMethod


just wanted to write a client side method that call the function once we click on the "prev", next","last" and "first" buttons
and get the current page index

Please clarify do you really need to use JavaScript for that task? The options that I mentioned above appear to be best for pagination via WebService and DirectMethod.