iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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
Hello Sham,
When running with a defaul global.asax, It should be working as expected. You can use your own custom method in global.asax, but you need to ensure that the default one also works (not conflict) in your own global.asax.
FYI, WebGrid 4.0 is the old product and we have discontinued to release hotfix for old products. So, I don't think that any changes would be made in WebGrid 4. The possible way if you enhance your current global.asax or upgraded into new version.
Regards,HAndy
Please ensure you have added global.asax in your WebProject. Hope this helps.
Regards,Handy
Hi Handy,
Thanks for your quick reply, but I already have a Global.asax added in my web project, is there any setting or code that should go with it?
Regards,
Shamjeed
Hello Shamjeed,
Was it your own custom global.asax? If yes, please try to add the standart from Visual studio and let me know the result. Please let me know also if the same issue persists in our WebGrid sample or not.
We have already custom implemented some methods in Global.asax like:
Application_Start
Session_Start
Application_PreRequestHandlerExecute
Application_Error
Session_End
So I could not run my application with the default Global.asax file.
And I also do not have a WebGrid sample with me to try it out :-(
Thanks & kind regards
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname