I have a webdialogwindow that contains a webdatagrid. The grid is populated by the results of the users search (runtime). The data is populated fine, but when I go to click the next (paging feature of webdatagrid) the grid seems to postback and is blank. Please help, I am stuck!
Hello Lonnie ,
Thank you for posting in our forum.
When you change the active page the grid will make an ajax request to the server to retrieve the data for the next page. If the data source for the grid is not available during that ajax request, then the grid would be empty since it would have no data source from which to load the data for the next page.
Make sure that you set the data source for the grid on each postback, or if you’re not going to use any other ajax enabled data source dependent behaviors like sorting, filtering, group by and so on, then you could handle the PageIndexChanged event and set the DataSource to the grid during that event so that the new page data can be retrieved.
Let me know if you have any question.
Best Regards,
Maya Kirova
Developer Support Engineer II
Infragistics, Inc.
http://www.infragistics.com/support
Thank you for the reply. I'm pretty new to infragistics, could you please provide an example of how this event is handled?
got it working thanks!
I’m glad to hear you were able to find the event and handle it.
If you have any additional questions or concerns don’t hesitate to let me know.