how to change Background of Radlabelelement in RadPanelBarGroupElement

3 posts, 1 answers
  1. Erik
    Erik avatar
    80 posts
    Member since:
    Jul 2007

    Posted 05 Aug 2008 Link to this post

    Hi telerik,

    How to change the background and border color? I'm able to change throught Edit UI item. How do i change it in run time using coding?

    Please look at below screenshot to indicate which background.

    Screenshot:
    http://img530.imageshack.us/img530/7223/screenshotvn6.png

    Thanks
  2. Answer
    Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 06 Aug 2008 Link to this post

    Hi Erik,

    There are two different ways depending on which background color you would like to change - the caption's of the element or the groupElement's?

    To change group's caption element's first backColor use:

    radPanelBarGroupElement1.GetCaptionElement().BackColor = Color.Black;

    To change group element's backColor use:

     (radPanelBarGroupElement1.Children[0] as LightVisualElement).BackColor = Color.Red;

    I hope this helps.

    Greetings,
    Boyko Markov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Erik
    Erik avatar
    80 posts
    Member since:
    Jul 2007

    Posted 06 Aug 2008 Link to this post

    Thanks for the answer. It really works.
Back to Top