Double click appointment from agenda view

7 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
    3040 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);
    });
  4. Joshua
    Joshua avatar
    82 posts
    Member since:
    May 2012

    Posted 31 Jan in reply to Plamen Link to this post

    Is this still the case? Why would design it to be not clickable?
  5. Nencho
    Admin
    Nencho avatar
    1864 posts

    Posted 04 Feb Link to this post

    Hello, Joshua,

    By design, the purpose of this view is to revise the already created schedule. The entire view is not editable and has no slots, unlike the other views, which are made with this purpose in mind. 

    While the previous reply from my colleague described how to manually achieve editing in the Agenda view - I would suggest you log a feature request in our public feedback portal, containing your idea and a brief explanation of what you expect to have as a layout in that view:

    https://www.telerik.com/support/feedback

    Regards,
    Nencho
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  6. Joshua
    Joshua avatar
    82 posts
    Member since:
    May 2012

    Posted 04 Feb in reply to Nencho Link to this post

    From a design perspective that doesn't make sense. How are you going to revise an already created event, if you cannot open it for editing?

    So we are clear, I have already update this in my usage of it. I am just trying to figure out why it would not have been included. I am going to just assume it was an oversight and that's ok.

  7. Nencho
    Admin
    Nencho avatar
    1864 posts

    Posted 06 Feb Link to this post

    Hello Joshua and thank you for the follow-up,

    You can use eventTemplate, in order to show the needed content of the event, hence, make all of the needed information available. You just need to define it for the agenda view, and construct the layout, as demonstrated in the following documentation article:

    https://docs.telerik.com/kendo-ui/api/javascript/ui/scheduler/configuration/views.eventtemplate

    Regards,
    Nencho
    Progress Telerik

    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top