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

RadExpander and disappeared PreviewExpanded

2 Answers 53 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Jaroslav Půbal
Top achievements
Rank 1
Jaroslav Půbal asked on 19 May 2011, 04:05 PM
Hello great Telerik support!
I have probably one bug in RadExpander and PreviewCollapsed and PreviewExpanded events.

Generally we want to be able stop RadExpander from collapsing or expanding.


private void RadExpander_PreviewExpanded(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
    e.Handled = true; //some logic
    Debug.WriteLine("RadExpander_PreviewExpanded");
}
private void RadExpander_PreviewCollapsed(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
    e.Handled = true; //some logic
    Debug.WriteLine("RadExpander_PreviewCollapsed");
}

This is generally working, but no really.

When Preview method once stop action (e.handled=true) then second invocation of Preview never happens.
So if I 4x click on RadExpander only two lines of "RadExpander_PreviewExpanded" will be in the Output window.

Always one event proceed and one disappear.

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 24 May 2011, 01:57 PM
Hello Jaroslav Půbal,

I was unable to reproduce such issue in my environment. You can check out the attached project and the captured video and let me know if I have missed something. Thank you in advance for your cooperation.

Kind regards,
Petar Mladenov
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
0
Jaroslav Půbal
Top achievements
Rank 1
answered on 25 May 2011, 09:10 AM
Hello,
I do an extensive research :-) with IE9, IE8, Chrome, SL4 and SL5.

I finally found that this happens only when running in debug in Visual Studio.

So for me this is OK.

(My enviroment is IE9 with SL5 beta)
Tags
Expander
Asked by
Jaroslav Půbal
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Jaroslav Půbal
Top achievements
Rank 1
Share this question
or