Categories | Question details Back To List | ||
Grid changePage in XML 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 <afterInit> <call command="changePage"> <param>2</param> </call> </afterInit> but it doesn't work. Have you any idea. Thank you very much. Dirk Holstein Answer posted by Support on Sep 19, 2008 05:24 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: <rows> <userdata name="page">2</userdata> .... script: .... mygrid.loadXML("grid.xml",function(){ mygrid.changePage(mygrid.getUserData("","page")) }) |