Up and down buttons styles

3 posts, 1 answers
  1. Paul
    Paul avatar
    34 posts
    Member since:
    Apr 2017

    Posted 25 Apr Link to this post

    Hello,

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

    My issue as in my attachment

    Thanks

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1869 posts

    Posted 25 Apr Link to this post

    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.
  3. Paul
    Paul avatar
    34 posts
    Member since:
    Apr 2017

    Posted 25 Apr in reply to Dimitar Link to this post

    Hello Dimitar,

     

    Your solution working well, it have been solved.

    Thanks you so much for your help

     

    Regard,

    Paul

Back to Top