Is it possible to show Reminders as anything but hours?

2 posts, 0 answers
  1. Scott
    Scott avatar
    6 posts
    Member since:
    Mar 2012

    Posted 03 Oct 2013 Link to this post

    I am looking to change the reminders for the scheduler to days instead of hours? I can't find anything on this anywhere, is it possible?
  2. Dimitar
    Admin
    Dimitar avatar
    1404 posts

    Posted 08 Oct 2013 Link to this post

    Hello Scott,

    Thank you for writing.

    Although this functionality is not directly supported, for this case you can get the RadReminderBindableObject with reflection:
    var remindOjects = schedulerReminder.GetType().
        BaseType.GetField("reminderBindableObjects", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(schedulerReminder)
        as ObservableCollection<RadReminderBindableObject>;
     
    RadReminderBindableObject remindObject = remindOjects[0];
    remindObject.DueInFormatting+=obj_DueInFormatting;

    Then you can subscribe to the DueInFormatting event, calculate the desired format and change the text:
    void obj_DueInFormatting(object sender, RadDueInArgs e)
    {
        e.DueInText = "test";
         
    }

    Please let me know if there is something else I can help you with. 

    Regards,
    Dimitar
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top