Hi,
I added a reply to this post:
viewtopic.php?f=2&t=12649&p=36528&hilit=onBeforePageChanged+twice#p36528
His is resolved, but not for me.
What happens is this. I have a contact management system set up based on the grid. Each folder has a grid, and each grid has different column headers depending on the type of contact. These grids are all generated dynamically.
Every time a folder is clicked on, I reload the entire grid by calling:
myGrid.loadXML(url_to_load);
where url_to_load sends the database information on what folder was clicked and for what user.
So, I need to implement paging on this grid. I followed the example 50,000 paging and it like I said in the post, that method onBeforePageChanged was being called twice.
I fixed my code so that I only display the code when posStart isn’t present. In other words, if it’s not paging, go ahead and refresh the full grid.
The good news is that this sort of works. When I load my contact manager grid, and page, it works great. However, as soon as I click on another folder which calls loadXML again, the paging once again fails and getRowsNum returns 0, even though the XML I am returning has the full declaration.
Please help me - I really need to fix this!
Thank you,
Rachel