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

CurrentChanging event fires 4 times

1 Answer 57 Views
DataServiceDataSource
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 30 Sep 2011, 04:55 PM

Hi! We are using Rad Controls for Silverlight and RadDomainDataSource.We've subscribed for CurrentChanging event:

collectionView.CurrentChanging += new System.ComponentModel.CurrentChangingEventHandler(this.DataView_CurrentChanging);

 

and the handler is called 4 times.The same problem for the CurrentChanged event.

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 04 Oct 2011, 09:32 AM
Hello Michael,

We have confirmed the issue that you have reported. Unfortunately, it turns out that there is not easy fix for it and we will have to re-work our internal data engine considerably in order to resolve this issue. 

Here you can follow its status.

There is a workaround possible. Create a local field that will store and cache the last reported current item by reading it from DataView.CurrentItem. Then each time that you receive the CurrentChanged event compare the current value of DataView.CurrentItem with the old cached value. If they are different then you really have the current item being changed.

Please, excuse us for the inconvenience. We will do our best to resolve this issue as soon as possible.

Best wishes,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DataServiceDataSource
Asked by
Michael
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or