Change background color based on expanded state

4 posts, 0 answers
  1. Maria
    Maria avatar
    14 posts
    Member since:
    Dec 2008

    Posted 14 Jan 2010 Link to this post

    I want to create a style for the expander so that the background color changes when the control is expanded or collapsed.  For instance, when collapsed, I want the color to be grey.  When expanded, I want to changed the color to red. 
  2. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 18 Jan 2010 Link to this post

    Hello Maria,

    Thank you for your interest in the RadExpander for Silverlight.

    You should handle the Expanded and the Collapsed events. Please preview the attached example and let us know if you have other questions.

    Best wishes,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Maria
    Maria avatar
    14 posts
    Member since:
    Dec 2008

    Posted 18 Jan 2010 Link to this post

    The example changes the color through coded events.  I'm assuming the same cannot be achieved by styling/templating the control?
  5. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 19 Jan 2010 Link to this post

    Hello Maria,

    With the current release there are no properties about background in collapsed and expanded states. However if you share with us more information about your scenario we will try to find a workaround for you.

    Looking forward for your reply.

    Greetings,
    Ivan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top