QDSCV - Calling RejectChanges(), triggers Load() and CurrentItem changes even with AutoLoad=false?

2 posts, 0 answers
  1. Orchid Infosys
    Orchid Infosys avatar
    12 posts
    Member since:
    Jul 2010

    Posted 07 May 2011 Link to this post


    The QueryableDomainServiceCollectionView.AutoLoad is set to false, when the user starts editing a record and in some case cancels it, the QDSCV loads again moving record cursor to the first record. Two unwanted things happens here.

    1. Unnecessary delay because of the roundtrip to the server and wastage of Network resource
    2. User looses track of his current editing record and is forced to navigate to it again

    Is this behaviour by design or am i missing something?

  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 10 May 2011 Link to this post

    Hello Fakrudeen,

    We will need some time to think over all the pros and cons of such a change. While your point is very valid, if we change this behavior it will be a breaking change for all customers and that is why we want to consider all possible implications before we make a decision on this matter. I will let you know if we decide to change this behavior.

    Meanwhile, there is a pretty easy way to work around this. Just before you call the RejectChanges method, raise a flag. Attach to the Loading event of the collection. If the flag is raised, cancel the the load operation through the event arguments and then lower the flag.

    Let me know if that does not help.

    Best wishes,
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top