I have a WebGrid inside a WARP control that is set to refresh on the click of a button. The WebGrid is set to loadondemand and paging. Now when I refresh I rebind the webgrid with new data from the database. The only time I see it refresh is when I select a new page. Now I'm not all that tied to using a WARP but I need the webgrid to refresh asynchronously with updated database data. How might I go about doing that?
If you have ViewState on for the page, it's possible that all the data that the grid needs is already stored in it, and the grid doesn't need to rebind on a postback. You can always force it to rebind by calling "DataBind".
Hope this helps,
-Tony
I am having a similar problem. I am rebinding the WebGird each time because I am using custom paging.
I allow editing and deleting on the rows of the WebGird. Once I have edited/deleted a row I make a call to a database to update/delete the corrisponding record. The table in the database is update the reflect the change. Once this has been completed the user should be presented with a message confirming the action. The message never appears.
While stepping through the code I notice that the WARP's RefreshRequest clientside event is being called, but the WARP's RefreshResponse or RefreshComplete clientside events are never being fired.
The same thing happens when I click to change pages. The WARP's RefreshResponse or RefreshComplete clientside events are never being fired therefor anything that happens post callback is happening.