TKDataFormTimePickerEditor - Minutes Increment

2 posts, 1 answers
  1. Gelu
    Gelu avatar
    8 posts
    Member since:
    Jul 2012

    Posted 11 Jan Link to this post

    Is it possible to set the minutes increment to a value, e.g. 10min?



  2. Answer
    Adrian avatar
    159 posts

    Posted 12 Jan Link to this post

    Hello, Gelu,

    Thank you for contacting us. 

    TKDataFormTimePickerEditor is subclass of TKDataFormDatePickerEditor and has a datePicker property which is of class UIDatePicker. To set a minutes interval you should set the minuteInterval property of the UIDatePicker. This should be done by implementing dataForm:setupEditor:forProperty: method of TKDataFormDelegate. Consider the code below:
    override func dataForm(dataForm: TKDataForm, setupEditor editor: TKDataFormEditor, forProperty property: TKEntityProperty) {
        if == "time" {
            let datePickerEditor = editor as! TKDataFormTimePickerEditor
            datePickerEditor.datePicker.minuteInterval = 15

    I hope this helps. Should you have further questions, do not hesitate to contact us.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top