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
Under a couple different scenarios, my users are seeing a window open with the title: WebGrid.NET Enterprise Version 6.0
Unhandled Exception
Unable to communicate with server.
This occurs when the user clicks the same heading twice to sort the contents of the Webgrid.
This also occurs when the user deletes to rows or the last rows in a grid.
Any clues of what I might be doing wrong or what might cause this?
Using C#, ASP.NET, Webgrid is in a user control. Straightforward grid, not heirarchical. Just display a number of rows
Width="800px" OnInitializeRow="DocumentGrid_InitializeRow" OnDeleteRow="DocumentGrid_DeleteRow" >
<LayoutSettings StatusBarVisible="false" AllowDelete="Yes" RowHeaders="No" AllowAddNew="No" AllowContextMenu="false" AllowGrouping="No" >
</LayoutSettings>
<RootTable DataKeyField="DOCUMENT_ID" AllowColumnMove="No"
AllowSelectColumns="No" AllowSorting="Yes" AutomaticSort="true" RowHeaderWidth="0">
<Columns>
<ISWebGrid:WebGridColumn DataMember="DOCUMENT_VIEWER" Name="Icon" Caption="Type"
Width="20px" ColumnType="Image" >
</ISWebGrid:WebGridColumn>
<ISWebGrid:WebGridColumn Caption="Description" DataMember="UPLOAD_DESCRIPTION" Name="Description"
Width="100%" ColumnType="HyperLink" AllowSorting="Yes" >
<ISWebGrid:WebGridColumn Caption="Filename" DataMember="FILENAME" Name="Filename" AllowSorting="Yes" Visible="false"
>
<ISWebGrid:WebGridColumn Caption="Date" DataMember="CREATION_DATE" Name="Date" AllowSorting="Yes"
Width="150px">
<ISWebGrid:WebGridColumn Caption="Type" DataMember="DOCUMENT_TYPE_NAME" Name="Type" AllowSorting="Yes"
<ISWebGrid:WebGridColumn Caption="Web Access" Name="WebAccess" DataMember="WEB_ACCESS" AllowSorting="Yes"
Width="75px" ColumnType="ImageAndText">
<HeaderStyle HorizontalAlign="Center" />
<CellStyle HorizontalAlign="Center"></CellStyle>
<ISWebGrid:WebGridColumn Caption="Delete" Name="Delete" Width="50px" AllowSorting="No" ColumnType="Image" >
<CellStyle HorizontalAlign="Center" ></CellStyle>
</Columns>
</RootTable>
</ISWebGrid:WebGrid>
Unhandled exception window described above opens when the delRow.Delete(); is executed on the client.
var grid = ISGetObject("DocumentGrid"); if (grid != null) { var delRow = grid.RootTable.GetRowByKeyValue(retVal); if (delRow != null) { delRow.Delete(); } }
Is there some link to data that I'm either not setting or setting incorrectly that the Webgrid control needs to communicate to the server. Or is this a Help issue and it's trying to contact Intersoft Help?
Attached is the sample I used to recreate the issue you are facing. I tried clicking the heading twice to sort the content, however I could not replicate the issue.
Regarding the delete, how do you invoke the snippet in your post? And how do you pass the retVal parameter to the function?
If you have not done so, please update your WebGrid 6 and WebUI Framework to the latest build to see if it is already solve the issue, the latest build is 218 and 705 respectively.
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