This is a migrated thread and some comments may be shown as answers.

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

1 Answer 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Orchid Infosys
Top achievements
Rank 2
Orchid Infosys asked on 07 May 2011, 06:23 AM
Hi

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?

Thanks

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 10 May 2011, 05:53 AM
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,
Ross
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
Tags
GridView
Asked by
Orchid Infosys
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Share this question
or