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 have a WebGrid using BatchUpdate and need a way to clear the grid from all of the user's changes. The WebGrid's "UndoAllChanges" updates all of the textboxes back to their original data but not a field with a CheckBox control
<ISWebGrid:WebGridColumn Caption=" " Name="IncludeOutstanding" DataMember="IncludeOutstanding" ColumnType="CheckBox" EditType="Checkbox" FilterEditType="NoEdit" Width="25px" function <%=this.ClientID%>_SetEnabled(isEnabled) { try { // Enable/Disable var treatyClaimsGrid = ISGetObject("<%=this.grdTreatyClaims.ClientID%>"); if (treatyClaimsGrid == null) { return; } if (isEnabled == false) { treatyClaimsGrid.UndoAllChanges(); } treatyClaimsGrid.Enabled = isEnabled; } catch (ex) { ShowJSException(ex); } }
This minor glitch can be easily reproduced by using BatchUpdate_AllowUndo.aspx of WebGrid reference sample file in WebGridSamples project. A work item, work item #766, has been submitted to WebGrid development team regarding this. WebGrid development team will have this issue fixed and released the hotfix in the next upcoming build of WebGrid 7.
I’ll keep you updated with any news I heard from the team regarding work item #766.
Until the hotfix is released, I’d like to offer you a workaround to overcome this minor glitch. The workaround uses javascript in UndoAllChanges javascript event of WebGrid. The logic is simple:
I enclosed a very simple sample that shows how the workaround implemented. Please let us know whether it helps or not.
I’d like inform you about the status of work item #766.
WebGrid development team has managed to get the issue resolved in WebGrid 7. I have tested the nightly build of the hotfix and found that the issue no longer persists.
Should you need to have the nightly build hotfix to be tested on your local end, please let us know.
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