Welcome to the Xceed Community | Help
Community Search  
More Search Options

Aggregate CommitItems Event

Sort Posts: Previous Next
  •  07-10-2012, 9:45 AM Post no. 32373

    Aggregate CommitItems Event

    Hi guys,

    I understand the CommitItems event is called once for each page with modified data when the CommitAll method of the virtualized collection view is called

    This is causing a problem for our application as each call to CommitItems goes across the wire to a WCF Service, when the user has made changes to multiple pages

    Is there a way to aggregate these calls. i.e.  when The CommitAll method is called, gather all rows with changes from all pages and make one call

    Filed under:
  •  07-12-2012, 12:54 PM Post no. 32391 in reply to 32373

    Re: Aggregate CommitItems Event

    Hi Kumar,

    We do not support this out of the box. You will need to add custom code to do it yourself. In essence, what you need to do is the following:

    - Create a list that will contain items to commit.
      - Handle the EditEnded event on Row, and if the IsDirty property is set to true, take a copy of the underlying source item and place it in the list.
    - Handle the CommitItems event, and when a page gets unloaded, simply call the EndCommit() method without actually commiting items.
    - When your Save button is clicked (or the event to save all is triggered), commit the items that are present in the list with a corresponding query, and then clear the list.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
  •  07-12-2012, 3:17 PM Post no. 32393 in reply to 32391

    Re: Aggregate CommitItems Event

    Thanks.

    Are there any plans to consolidate the commit items event in a future version.

    It would be nice if the grid made one commit all event for all changed pages instead of multiple calls for each page, especially in a distributed environment

     

    Filed under:
  •  07-12-2012, 3:51 PM Post no. 32394 in reply to 32393

    Re: Aggregate CommitItems Event

    Hi Kumar,

    I created a feature request for this behavior and assigned it to the development team.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.