RadExpander - is it possible to preload contents before expanding?

2 posts, 0 answers
  1. Rob
    Rob avatar
    238 posts
    Member since:
    Jan 2009

    Posted 18 Jul 2013 Link to this post

    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
  2. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 23 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top