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
Hi,
I am encountering an intermetent error when trying to sort a certain column.
The error is WebGrid.NET Enterprise Version 7.0 -Unable to communicate with server: unhandled exception error
I have attached the error encountered for reference.
Additional details:
IE8
Windows 7
Visual Studio 2010
.Net Framework 4.0
Server is up
No connection related jobs are running
Thanks and more power.
Hello,
Are you using Unbound WebGrid? If yes, this is the limitation for unbound. You could not use FlyPostBackRequest in unbound scenario such as Refresh, Sorting, Add, Update, Delete, Filtering, Groung, etc.
Regards,Handy
What do you exactly mean by Unbound Webgrid? we assign it as datasource then we databind it.
Thanks,
JammyMad
Hello JammyMad,
What datasource? Is it XML? Can you send us a simple runable sample for that. You can see in our WebGrid sample about unbound sample. Also, XML datasource is also not supported like unbound scenario.
// We are using .NET 4.0 Entity Framework.// in the example below, searchResult is a DataTable with the bound columns for WGResults (Intersoft Web Grid)// We dynamically add the column to WGResult and assign it a data source.
WGResults.DataSource = searchResults;WGResults.DataBind();
<ISWebGrid:WebGrid ID="WGResults" runat="server" Height="500px" UseDefaultStyle="True" Width="600px" DefaultStyleMode="Win7"> <LayoutSettings GridLines="Vertical" AllowColumnFreezing="Yes" AllowExport="Yes" AllowFilter="Yes" AllowSelectColumns="Yes" PagingMode="ClassicPaging" PagingSize="50" AllowSorting="Yes"> <ClientSideEvents OnRowContextMenu="WebGrid_OnRowContextMenu"></ClientSideEvents> </LayoutSettings></ISWebGrid:WebGrid>
I noticed that you bind your data in page load. This might be a problem. Please bind your data in InitializeDataSource event.
e.g
protected void WebGrid1_InitializeDataSource(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e) { e.DataSource = searchResults; }
Also, please specify DataKeyField in your RootTable.
Hello David,
It does not matter. We also have InitializeChildDataSource for child rows. You can also finalize in there.
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