Is it possible to set the minutes increment to a value, e.g. 10min?
Thanks
Gelu
1 Answer, 1 is accepted
0
Accepted
Adrian
Telerik team
answered on 12 Jan 2016, 02:29 PM
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:
let datePickerEditor = editor as! TKDataFormTimePickerEditor
datePickerEditor.datePicker.minuteInterval = 15
}
}
I hope this helps. Should you have further questions, do not hesitate to contact us.
Regards,
Adrian
Telerik
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