RadScheduleView - how to sort the appointments in month view

3 posts, 1 answers
  1. Matt
    Matt avatar
    5 posts
    Member since:
    Apr 2014

    Posted 15 Apr Link to this post

    I am working on a project that is using the RadScheduleView to populate a time off calendar for employees.  Currently when the view is rendered the appointments are listed in order of their appointment time.  I want them to be ordered based on when the appointments were submitted by the user.    This way we can see who submitted  the request first.  See attached file for a sample output of what the problem is.  In the sample, Tom created his appointment on 3/17 and Paul created his request a few weeks prior on 2/23.  I want Paul's request to be listed first and then Tom's.  It looks like the tool is sorting them based on the actual appointment  times because Tom's appoint is 12am where as Paul's appt is 10am so naturally Tom would be first.  How do I change this behavior to reflect acustom sort method.  


    I am using a sorted list (sorted on date created) to populate the Appointment collection that is used for the DataContext of the RadScheduleView.


    Thank you for your help.


  2. Answer
    Yana avatar
    4547 posts

    Posted 18 Apr Link to this post

    Hi Matt,

    I am afraid that RadScheduleView does not provide a way to change the order of appointments inside MonthViewDefinition  - our mechanism sorts them according to their StartTime, Duration and Index.

    So the only possible solution in this case is to manipulate their Start/End times. For example, you could create a custom appointment class and preserve the actual Start/End times inside custom properties.

    Hope this would be helpful.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft banner
  4. Matt
    Matt avatar
    5 posts
    Member since:
    Apr 2014

    Posted 18 Apr in reply to Yana Link to this post

    Thank you Yana.  I can probably use the time as a work around to achieve the results I am looking for.  Thanks!
Back to Top