Coloring scrollbar

2 posts, 0 answers
  1. Cuong
    Cuong avatar
    5 posts
    Member since:
    Dec 2013

    Posted 09 Jun 2014 Link to this post

    Hi,

    How can I color the vertical/horizontal scrollbar on the table of the drop down list?
  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 12 Jun 2014 Link to this post

    Hello Cuong,

    Thank you for writing.

    If your requirement is to change the color of the vertical scroll bar for the popup, please have a look at the following code snippet:
    ((FillPrimitive)radDropDownList1.ListElement.VScrollBar.Children[1]).BackColor = Color.Red;
    radDropDownList1.ListElement.VScrollBar.ThumbElement.ThumbFill.BackColor = Color.Yellow;
    radDropDownList1.ListElement.VScrollBar.ThumbElement.ThumbFill.GradientStyle = GradientStyles.Solid;
    radDropDownList1.ListElement.VScrollBar.FirstButton.ButtonFill.BackColor = Color.Green;
    radDropDownList1.ListElement.VScrollBar.FirstButton.ButtonFill.GradientStyle = GradientStyles.Solid;
    radDropDownList1.ListElement.VScrollBar.SecondButton.ButtonFill.BackColor = Color.Blue;
    radDropDownList1.ListElement.VScrollBar.SecondButton.ButtonFill.GradientStyle = GradientStyles.Solid;

    If it is not the exact requirement, please specify in detail what is the expected design. Thus, we would be able to suggest a suitable solution.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top