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'm having an issue with my grid getting stuck with status "Refresing data..." after I make an edit on the grid. If I refresh the page, it looks like the change makes it to the database, but the grid itself never updates. See the attached image.
Scenario as follows:
- Dynamically adding columns server side inside InitializeLayout (80+ columns).
- Binding to ObjectDataSource
- Double click into a cell to make a change.
- Hit enter and move to next line. I see the status "Updating..." then "Refreshing data..." then it gets stuck and my grid never refreshes.
- My grid looks like this:
<ISWebGrid:WebGrid ID="myGrid" runat="server" Height="560px" Width="100%" UseDefaultStyle="true" EnableWebResources="Always" DataSourceID="odsAccountLineList" CustomSchemaRetrieval="UseWebGrid"> <RootTable GridLineStyle="NotSet" DataKeyField="account_line_id"> </RootTable> <LayoutSettings DisplayDetailsOnUnhandledError="true" InProgressUIBehavior="ChangeCursorToHourGlass" StatusBarVisible="true" NewRowLostFocusAction="AlwaysUpdate" RowLostFocusAction="AlwaysUpdate" AllowColumnMove="Yes" AllowFilter="No" AllowGrouping="No" AllowSelectColumns="Yes" AllowSorting="No" GroupByBoxVisible="false" AutoHeight="false" AutoWidth="true" PagingMode="None" AllowEdit="Yes" AllowDelete="Yes" AllowMultipleSelection="Yes" UseRelativePositioning="true"> <AlternatingRowStyle CustomRules="text-overflow: ellipsis; overflow-x: hidden" BackColor="LightGray" Wrap="false" Font-Size="8pt" Font-Names="Arial Monospaced"></AlternatingRowStyle> <RowStyle CustomRules="text-overflow: ellipsis; overflow-x: hidden" BackColor="White" Font-Size="8pt" Wrap="false" Font-Names="Arial Monospaced"></RowStyle> <ClientSideEvents OnRowContextMenu="myGrid_OnRowContextMenu" OnColumnContextMenu="myGrid_OnColumnContextMenu" OnEnterEditMode="myGrid_OnEnterEditMode" /> </LayoutSettings> </ISWebGrid:WebGrid>
Thanks!
I tried to reproduce the problem in my local test by creating a simple page of WebGrid based on thedescription in your initial post. The grid sample is bound to ObjectDataSourcecontrol where the business object is set to GenericObject.CustomerDataAccess class. This class is available in WebGridSamples project ("%ProgramFiles%\Intersoft Solutions\Intersoft WebUI Studio 2012 R1\Samples\For ASP.NET\ISNet.WebUI.Samples\cs\WebGrid\App_Code\GenericObject" folder).
However, I was unable to replicate the repoted problem using this simple sample. I enclosed the sample for reference. Could you please have the sample tested on your end and let me know your feedback?
For your information, instead of adding columns dynamically on InitializeLayout event, the sample uses WebGrid1.RetrieveStucture(); method on PrepareDataBinding event. Client side events, OnRowContextMenu; OnColumnContextMenu; and OnEnterEditMode, are excluded.
If you don’t mind, could you please try to dynamically add the columns in PrepareDataBinding event as shown in the DiffCols.aspx WebGrid tutorial and let us know whether the problem persist or not? (start > All Programs > Intersoft WebUI Studio 2012 R1 > WebUI Studio for ASP.NET > WebGrid 8 > C# Tutorials. The physical location of the file is: "%ProgramFiles%\Intersoft Solutions\Intersoft WebUI Studio 2012 R1\Tutorials\cs\WebGrid\V3.1\DiffCols.aspx".)
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