RadTimePicker, Step-property?

2 posts, 0 answers
  1. Aron
    Aron avatar
    13 posts
    Member since:
    Apr 2015

    Posted 30 Apr 2015 Link to this post

    There's a step property in the RadTimePicker, which I up untill this point believed set the amount of hours / minutes to step when the buttons in the timepicker were clicked, this however, doesn't seem to be the case. Why is there no step property for hours and minutes? 


    To explain further: I want the user to only be able to step by one hour or by 30 minutes, is there no way of achieving this with the given properties existing within the Timepicker?

  2. Hristo
    Hristo avatar
    1522 posts

    Posted 05 May 2015 Link to this post

    Hi Aron,

    Thank you for writing. 

    The Step property of RadTimePicker sets the minutes step in the drop down element. In order to achieve your task you would need to access the MaskedEditBox.Provider of the TimePickerElement. Please see my code snippet below: 
    private void SetStep()
        MaskDateTimeProvider provider = this.radTimePicker1.TimePickerElement.MaskedEditBox.Provider as MaskDateTimeProvider;
        provider.MinutesStep = 30;
        provider.HoursStep = 1;

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Hristo Merdjanov

    See What's Next in App Development. Register for TelerikNEXT.

Back to Top