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

Sort by date desc in agenda view

4 Answers 200 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 15 Feb 2018, 04:44 PM
I already have a custom extended agenda view, is there by any chance a way to have my events sort DESC?  Users want the latest events at the top.

4 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 19 Feb 2018, 12:07 PM
Hello Steve,

Currently, the Scheduler does not provide support for custom sorting of its events. Even if the dataSource of the widget is sorted, the events are being rendered in different order, depending on the used browser. 

A suggestion workaround which can be used to achieve the desired behavior is to add a minute difference for each record's start time. This is discussed more extensively in the following forum thread.

In addition to the above, if you think that the discussed custom sorting feature should be added to the core functionality of the widget, I would also suggest to up-vote this similar request in the Kendo UI Feedback Portal.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 20 Feb 2018, 03:54 PM

Yeah no all the dates are different, I have a custom agenda list that shows "everything"

 

So no other work around, even with a custom view?  Can a render event be hooked into or something?

0
Accepted
Dimitar
Telerik team
answered on 22 Feb 2018, 01:48 PM
Hello Steve,

In general, modifying sorting behavior is based on the view implementation. The built-in AgendaView orders events chronologically in ascending order. Therefore, to customize this, you could either use the workaround that I mention in my last reply or alternatively extend the specified view.

I have prepared a basic example that shows how the desired functionality could be achieved with custom view (Reversing the events order):


Please review the above implementation and use it as a starting point to further implement the rest of your project requirements. 

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 22 Feb 2018, 02:46 PM
Yes awesome dude thanks, I already had a custom extended view I just needed the methods to go about changing, thanks!
Tags
Scheduler
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Dimitar
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or