TKDataFormTimePickerEditor - Minutes Increment

Thread is closed for posting
2 posts, 1 answers
  1. Gelu
    Gelu avatar
    8 posts
    Member since:
    Jul 2012

    Posted 11 Jan 2016 Link to this post

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



  2. Answer
    Adrian avatar
    174 posts

    Posted 12 Jan 2016 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
Back to Top