Hi.
My task is to create a custom reusable "webgrid" that will be implemented in multiple projects. Above the ultrawebgrid in my control, there is a toolbar with image buttons, for basic common functions available for the user. I use an AJAX update panel around the toolbar so that when i click on the items, the entire page does not post back, but rather an asynchronous postback. That works great.
The problem though, comes in when I try to update the datasource of my ultrawebgrid. Debbugging shows that the ultraWebGrid datasource does get set to the updated DataTable, but it does not referesh the ultrawebgrid.
As soon as I remove the Update panel, the changes display, but a full postback occurs.
Any ideas how to show the updated values during an asynchronous postback?
Kind Regards,Niels
Hi Sarita
Thank you for your reply. I got it working
Kind regards,Niels
Hello Niels,
It looks like only the toolbar is inside the UpdatePanel, right? I'm not sure if you have enabled the AJAX for the Grid. If not, then please do so or else the Grid can only reflect the changes after a full page postback. To enable the AJAX, set the Browser Property of the ultraWebGrid and DisplayLayout.LoadOnDemand to "XML" and handle the InitializeDataSource event on the serverside. Please set the DataSource of the grid inside the InitializeDataSource event.
I would suggest to try this approach first and see what happens.
Thanks,
Sarita