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

RadScheduleView - how to sort the appointments in month view

2 Answers 174 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 15 Apr 2016, 06:56 PM

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.

-Matt

2 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 18 Apr 2016, 01:14 PM
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.

Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Matt
Top achievements
Rank 1
answered on 18 Apr 2016, 04:44 PM
Thank you Yana.  I can probably use the time as a work around to achieve the results I am looking for.  Thanks!
Tags
ScheduleView
Asked by
Matt
Top achievements
Rank 1
Answers by
Yana
Telerik team
Matt
Top achievements
Rank 1
Share this question
or