Hello,
I’m using the paging functionality within the grid. I want to change the page when loading the grid. I’ve tried it with
2
but it doesn’t work.
Have you any idea.
Thank you very much.
Dirk Holstein
changePage method should be called after xml loading. Please, try to use the following approach:
mygrid.loadXML(“grid.xml”,doAfterLoading)
function doAfterLoading(){
mygrid.changePage(2)
})
If you want pass the page number using xml, userdata functionality can be used. For example,
xml:
2
…
script:
…
mygrid.loadXML(“grid.xml”,function(){
mygrid.changePage(mygrid.getUserData("",“page”))
})