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

    Hi,

    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?

    Thanks
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 10 Feb 2014 Link to this post

    Hi,

    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.

    Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top