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

RadExpander - is it possible to preload contents before expanding?

1 Answer 78 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 1
Rob asked on 18 Jul 2013, 08:19 PM
Hello,

I am working with a RadExpander that starts off "Collapsed".  When the expander is expanded, the animation is choppy because I have several controls inside it that fire OnApplyTemplate to render at the same time.   This is because the items aren't added to the visual tree until the expander is expanded.  Is there a way to trigger that before the item is expanded?  The animation runs smoothly the second and subsequent times once the items have been rendered initially...

Thanks,
Rob

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 23 Jul 2013, 01:41 PM
Hello Rob,

You are right that the content of the RadExpander is loaded when the control is expended for the first time and this is why you get the reported behavior. Unfortunately, there is no built-in mechanism to force the control to load its content before it is expanded.

The only way to force the control to load its content is to expand and collapse it before visualizing. Please excuse us for the inconvenience caused.

Regards,
Pavel R. Pavlov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Expander
Asked by
Rob
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or