This is a migrated thread and some comments may be shown as answers.
Up and down buttons styles
2 Answers 8 Views
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 25 Apr 2017, 08:14 AM

Hello,

What should i do to format up and down button for DateTimePicker incase ShowUpDown = true.

My issue as in my attachment

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 25 Apr 2017, 11:02 AM
Hello Paul,

Here is how you can access the buttons and set their styles:
var spinEditor = radDateTimePicker1.DateTimePickerElement.CurrentBehavior as RadDateTimePickerSpinEdit;
var button1 = spinEditor.ButtonsLayout.Children[0] as RadRepeatArrowElement;
var button2 = spinEditor.ButtonsLayout.Children[1] as RadRepeatArrowElement;
 
button1.BackColor = Color.Green;
button1.Fill.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
button1.Fill.ShouldPaint = true;
 
button2.BackColor = Color.Green;
button2.Fill.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
button2.Fill.ShouldPaint = true;

Do not hesitate to contact us if you have other questions.
 
Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Paul
Top achievements
Rank 1
answered on 26 Apr 2017, 03:16 AM

Hello Dimitar,

 

Your solution working well, it have been solved.

Thanks you so much for your help

 

Regard,

Paul

Asked by
Paul
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Paul
Top achievements
Rank 1
Share this question
or