Selection is removed with customer edit form

2 posts, 0 answers
  1. Allocate Software Internal Systems
    Allocate Software Internal Systems avatar
    13 posts
    Member since:
    Jun 2010

    Posted 06 Feb 2014 Link to this post


    I have a scheduler that is configured to allow selection.  Rather than showing the default edit pop-up that is triggered by hitting [enter] we have wired up a custom dialog that appears as soon as the user releases the mouse after making a selection.

    When the standard dialog opens, I can see it creates a temporary event on the scheduler for the selected date-range and that event is removed and the selected range reinstated if the user cancels the dialog.

    I have been able to generate and remove the temporary event with my custom dialog but not found a way to reinstate the selection.  Is there an API for this that I have missed?

  2. Vladimir Iliev
    Vladimir Iliev avatar
    2190 posts

    Posted 10 Feb 2014 Link to this post


    Basically the selection object is preserved using private property of the scheduler which currently is not exposed in the API.  Please check the example of accessing that property below (this property can be modified in future versions):

    var scheduler = $("#scheduler").data("kendoScheduler");
    var selection = scheduler ._selection;

    Also I would suggest to share your idea about exposing that property in the scheduler API at KendoUI UserVoice to allow other users vote for it. Most voted ideas are included in next KendoUI releases.

    Vladimir Iliev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top