Login

  • Sign in with Intersoft Social ID
  • Sign in with Intersoft ID (Developer Network)
  • Sign in with Google ID
  • Sign in with Open ID. Click for more options.
Intersoft Social ID
Password
Intersoft Latest Learn More

Latest Development Blogs

Blog RSS
Loading
Retrieving News

Forum                   Topics  Post

Automatically Accept Batch Update

9 replies. Last post: August 1, 2012 6:32 AM by Hans Kristian
Rate this topic:
Average rating: Not rated yet.
Tags :
  • (None)
Ahmed DajaniMember

Hi,

I'd like to make the grid automatically accept batch update changes. My code is below. From the settings, it seems that it should, but it doens't. I always get the prompt in the status bar to accept pending changes. Everything deletes fine when I accept changes.

<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"
                            AllowBatchUpdate="true">
                <BatchUpdateSettings 
                    AutomaticObjectUpdate="true" 
                    AllowReviewChanges="false" 
                    AllowUndoChanges="false" 
                    NotifyOnLostFocus="false" 
                    PromptOnUndoAllChanges="false" 
                    PromptUnsavedChanges="false" />
                <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" 
                    OnAfterInitialize="myGrid_OnAfterInitialize"/>
		    </LayoutSettings>
        </ISWebGrid:WebGrid>

Thanks.


All times are GMT -5. The time now is 9:48 AM.