This is a migrated thread and some comments may be shown as answers.

Use seconds on Duration on Recurrence Window

1 Answer 68 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
heavywoody
Top achievements
Rank 1
heavywoody asked on 08 Sep 2015, 06:41 PM

I need to add values to the dropdown list of Duration so that they are 10 seconds, 20 seconds, 45 seconds, etc.  So I am able to add them okay to the list:

 

 var durationPicker = sender as DurationPicker;
            durationPicker.Items.Add("5 seconds");
            durationPicker.Items.Add("10 seconds");
            durationPicker.Items.Add("0.5 minutes");
            durationPicker.Items.Add("2 minutes");
            durationPicker.Items.Add("7 minutes");

 

However, picking any seconds doesn't update the End Time like if I picked 2 minutes.  It seems to ignore anything that is seconds.  Could you show me how to make seconds increments work on the Duration so it effects the End Date?   We often schedule items every 60 seconds. Or 30.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 11 Sep 2015, 09:56 AM
Hi Christian,

The DurationPicker that is used only internally into the RadScheduleView's EditRecurrenceDialog and basically inherits RadComboBox control does not provide an implementation for handling second - the logic implemented handles only minutes, hours  and weeks. So, if you need to handle a scenario where seconds are used you need to implement that logic - you could replace the DurationPicker  inside the Template of the EditRecurrenceDialog with RadComboBox and implement your own custom logic for the selected items of the ComboBox control.

However, what else we could suggest you is to wait until our next release (Q3 2015) when a brand new control RadTimeSpanPicker will be presented - the release is scheduled for the end of the month or the beginning of October. The control will provide an option to set all time span components from milliseconds to days. By replacing the DurationPicker  with RadTimeSpanPicker inside the Template of the EditRecurrenceDialog the desired functionality will be achieved and everything will work as expected.

We really hope the provided information will help you. If you have any additional questions or concerns please, do not hesitate to contact us.

Regards,
Nasko
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
Tags
ScheduleView
Asked by
heavywoody
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or