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

Coloring scrollbar

1 Answer 59 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Cuong
Top achievements
Rank 1
Cuong asked on 09 Jun 2014, 10:34 PM
Hi,

How can I color the vertical/horizontal scrollbar on the table of the drop down list?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Jun 2014, 02:21 PM
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.
 
Tags
DropDownList
Asked by
Cuong
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or