Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Appointment Sort Order

$
0
0
Hello Mohammed,

Thank you for writing. 

We had a feature request for custom sorting in RadScheduler when the start date and duration of the appointments are equal. It has already addressed. Here is the feedback item for your reference: http://feedback.telerik.com/Project/154/Feedback/Details/111320-add-custom-sorting-for-the-appointments-in-radscheduler-added-the-appointments

You can create a custom comparer that implements the IComparer<AppointmentElement> interface and compare the appointments according to your requirement.
this.radScheduler1.AppointmentsComparer = new MyComparer();

public class MyComparer : IComparer<AppointmentElement>
{
    public int Compare(AppointmentElement x, AppointmentElement y)
    {
        return x.Appointment.Summary.Length.CompareTo(y.Appointment.Summary.Length);
    }
}

I hope this information helps. Should you have further questions I would be glad to help.

Regards,
Dess
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>