Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Refresh UltraWebGrid after PDF export
posted

Hi, I am using UltraWebGrid Version 8.2.20082.1000 on an ASP.NET 3.5 page with UpdatePanel. Grid is set to use LoadOnDemand=Xml and I have implemented the InitializeDataSource event in which the grid is DataBind.

I have a button on the page which fires a server-side event. Steps in codebehind event:

1. Create a new temporary UltraWebGrid (will be used to export grid data)

2. Copy selected rows to temp grid 

3. Delete selected rows from the database

4. Delete selected rows from the DisplayLayout

5. Export the temp grid

The rows get deleted properly from the database. The selected rows are exported fine and the user gets a prompt to open/save the exported file. The problem is that the grid on the client-side does not get refreshed after the export. The rows that I deleted are still visible in the grid until the next postback. I tried to call DataBind on the grid before and after the export but it did not help.

 

Thanks!

Parents Reply Children