Sort by date desc in agenda view

5 posts, 1 answers
  1. Steve
    Steve avatar
    1883 posts
    Member since:
    Dec 2008

    Posted 15 Feb Link to this post

    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.
  2. Dimitar
    Admin
    Dimitar avatar
    425 posts

    Posted 19 Feb Link to this post

    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.
  3. Steve
    Steve avatar
    1883 posts
    Member since:
    Dec 2008

    Posted 20 Feb Link to this post

    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?

  4. Answer
    Dimitar
    Admin
    Dimitar avatar
    425 posts

    Posted 22 Feb Link to this post

    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.
  5. Steve
    Steve avatar
    1883 posts
    Member since:
    Dec 2008

    Posted 22 Feb in reply to Dimitar Link to this post

    Yes awesome dude thanks, I already had a custom extended view I just needed the methods to go about changing, thanks!
Back to Top