Use seconds on Duration on Recurrence Window

2 posts, 0 answers
  1. heavywoody
    heavywoody avatar
    81 posts
    Member since:
    Oct 2009

    Posted 08 Sep 2015 Link to this post

    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.




  2. Nasko
    Nasko avatar
    692 posts

    Posted 11 Sep 2015 Link to this post

    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.

    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