Double click appointment from agenda view

3 posts, 1 answers
  1. Andy
    Andy avatar
    16 posts
    Member since:
    Aug 2012

    Posted 05 Mar 2015 Link to this post

    If you double click an appointment from the month view it opens the appointment in a pop up window.

    If you try to do the same thing in the agenda view nothing happens.


    http://demos.telerik.com/kendo-ui/scheduler/index

    Is there a way to make the agenda view allow double clicking in the same way as the month view?
  2. Answer
    Plamen
    Admin
    Plamen avatar
    2958 posts

    Posted 06 Mar 2015 Link to this post

    Hi Andy,

    By design it is not supported scenario but you can add a eventTemplate button that can provide such possibility for update as done here- http://dojo.telerik.com/@zdravkov/AleZu.

    You can also hook on the subject container element as it is node here- http://dojo.telerik.com/@zdravkov/eZEse/3

    Hope this will help you solve the issue.

    Regards,
    Plamen
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Andy
    Andy avatar
    16 posts
    Member since:
    Aug 2012

    Posted 25 Mar 2015 Link to this post

    Thanks Plamen.

    Your examples got me most of the way there, but I used a table row selector so that double clicking anywhere in the agenda item loaded the event editor.

           
    var scheduler = $("#scheduler").data("kendoScheduler");
    $("#scheduler").on("dblclick", "tr[role='row']", function () {
        var taskItem = jQuery(".k-task", this);
        var dataItem = scheduler.occurrenceByUid($(taskItem).data("uid"));
        scheduler.editEvent(dataItem);
    });
Back to Top