Picklist Time interval

Posted by ddubois on 17-Nov-2015 17:52

Is there a way to change a picklist time interval to something other than the default 30 minutes?

All Replies

Posted by Mani Kumar on 18-Nov-2015 00:26

Hi David,

Unfortunately, there's no way to change the time interval for the Date/Time field picklist at this point of time.

I would suggest you to log an Enhancement for the same in Ideas section : community.progress.com/.../

Regards,

Mani.

Posted by Chandrasekhar Gontla on 18-Nov-2015 02:44

Hi David,

We can override interval of time picker field.

Please add the below code snippet to new/edit record page using script component.

<script>

 $( document ).ready(function() {

   rbf_getFieldContext('Time').getKendoConfig().setOptions({interval: 15});

});

</script>

Thanks and Regards,

Chandu.

Posted by ddubois on 18-Nov-2015 06:37

Perfect, this was a successful recommendation.  To push this just a bit further, can we limit the time picklist to display a range of time between 8:00 am and 3:00 pm?

Posted by Chandrasekhar Gontla on 18-Nov-2015 07:02

Hi David,

You can do that as well.

Sample snippet which includes both your requirements:

<script>

 $( document ).ready(function() {

   rbf_getFieldContext('Time').getKendoConfig().setOptions({interval: 15});

  rbf_getFieldContext('Time').getKendoConfig().setOptions({min: new Date(2000, 0, 1, 8, 0, 0),

                                max: new Date(2000, 0, 1, 15, 0, 0)});

});

</script>

Please look into the below link for any customization.

docs.telerik.com/.../timepicker

Thanks and Regards,

Chandu.

This thread is closed