Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Select time other than interval time

$
0
0
Hello Hemanth,

There is no built-in option to achieve such an automatic value change. By design, such manipulation of the value assigned is not recommended behavior for an UI component.

However, as a custom solution, you can use the widget's events to detect the opening of the Time Popup (http://docs.telerik.com/KENDO-UI/api/javascript/ui/datetimepicker#events-open), parse the currently selected value, round it via JS approach (this Stackoverflow thread would be useful—http://stackoverflow.com/questions/4968250/how-to-round-time-to-the-nearest-quarter-hour-in-javascript) and finally, assign the result from the round operation to the DateTime input  (http://docs.telerik.com/KENDO-UI/api/javascript/ui/datetimepicker#methods-value).

Regards,
Ianko
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>