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

RadDataFilter FilterEditorCreated event getting fired twice

7 Answers 86 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Yezdi
Top achievements
Rank 1
Yezdi asked on 03 Apr 2013, 08:19 PM
I am using the 2012.1.215.1040 version of Telerik dlls. In my application i have a RadDatFilter created in an unbound mode. Whenever an ItemProperty is chosen, the FilterEditorCreated event is fired twice. The "Q2 2011 SP1 (version 2011.2.0920)" release note on the Telerik site says that this bug is been fixed, but i still am facing the issue. Please advice.

7 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 04 Apr 2013, 05:33 AM
Hi,

I will try to explain what happens.

Customers have requested that this event is fired both when the item property definition changes and the filter operator changes. When the item property definition changes the event is fired for the first time. Since all filter operators are cleared and then re-populated for the new chosen item property, the selected operator also changes and fires the event for the second time. Since customers wanted this event to be fired on filter operator change so they can respond and modify the editor according to the chose operator.

So this is more like by design and not exactly a bug.

Is the fact that the event is fired twice somehow breaking your program logic severely. What are you doing in the event handler that should not be done twice?

All the best,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Yezdi
Top achievements
Rank 1
answered on 04 Apr 2013, 02:05 PM
My right hand side editors are mostly combo boxes whose data i fetch from a service. Now , every time i change a item property, say Itemproperty A to ItemPropertyB,  first the EditorCreated event for the editor for prop A will be fired (I have confirmed by debugging  the EditorCreatedEventArgs in the EditorCreated event)and then EditorCreated event for prop B will be fired. By design too, should the EditorCreated event get fired only for ItemPropertyB ?
0
Rossen Hristov
Telerik team
answered on 08 Apr 2013, 09:45 AM
Hi,

You are right. When changing the ItemPropertyDefinition, the event should not be fired for the "old" property.

We will do our best to change this behavior so that the event is fired only once when the ItemPropertyDefinition is changed and reads the new property name.

I will let you know immediately after we fix, test and check this in source control. Sorry for the inconvenience.

Greetings,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Rossen Hristov
Telerik team
answered on 10 Apr 2013, 08:26 AM
Hello,

The problem has been resolved. The fix will be released with our next Latest Internal Build.

Let us know if there are problems after you upgrade.

Regards,
Rossen Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Yezdi
Top achievements
Rank 1
answered on 17 Apr 2013, 06:08 PM
Can you please let me know when will the next internal build be? Is there a place where i can follow the date ?
0
Vlad
Telerik team
answered on 18 Apr 2013, 05:36 AM
Hi,

 Our internal builds are every Monday. Our next internal internal build will be next Monday. 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Shankar
Top achievements
Rank 1
answered on 06 May 2013, 04:44 PM
Hi Yezdi,I have an issue and need some help. I am fetching the values from a Service too. Were you able to fetch it asynchronously in some background thread? The problem I have is that this fetch is happening on the UI thread and it makes the control look slow.

Any thoughts/ideas on how your approach?

Thanks,
Tags
DataFilter
Asked by
Yezdi
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Yezdi
Top achievements
Rank 1
Vlad
Telerik team
Shankar
Top achievements
Rank 1
Share this question
or