WebGrid 4.0.6200.2 client side (FlyPostBack) loading issues

5 replies. Last post: June 23, 2010 3:08 AM by Handy Surya
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Hi,

I am facing a problem with WebGrid 4.0.6200.2 which so far has eluded me of any neat solution to it. Please find the description of the problem below:

1. Every time we try to load the web grid from client side using below code in JavaScript

var grid = ISGetObject("myWebGrid");

grid.RefreshAll();

Server side InitializeDataSource method is invoked twice. How can we prevent this from happening or what condition should we check to avoid data access code from executing twice?

private void wgdFlightMonitor_InitializeDataSource(object sender, DataSourceEventArgs e)

{

//Initialize web grid data source here

}

2. If we are having two web grids on the same page and try to load one of the web grid using client side JavaScript code mentioned above.

Server side InitializeDataSource method is invoked for both of the web grids.

Any help or insight would be highly appreciated for the above problems

All times are GMT -5. The time now is 10:28 PM.
Previous Next