Scheduler Restrict Movement between Timeline Rows

2 posts, 0 answers
  1. Support@readysetwork
    Support@readysetwork avatar
    7 posts
    Member since:
    Jun 2013

    Posted 27 Jan 2015 Link to this post

    I'm currently using Kendo UI javascript v 2014.3.1316 and I was attempting to scour Google and Telerik forums to restrict the move event to a specific row in Timeline View. For instance:
                 |           1PM           |           2PM         |             3PM         |
        Rob  |       [ Event1 ]        |                           |                             |
        Bill    |                              |                           |       [ Event2 ]       |

    I want to permit resizing and grabbing/moving of an event as long as it remains on a given person in my scenario above. So I'd like to resize or move Event1 to any time or timespan, but it must always be assigned to Rob and not given to Bill.Is this possible under the current Scheduler version or would it be impossible until future updates or heavily modifying the scheduler?
  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 29 Jan 2015 Link to this post

    Hello Joel,

    I would suggest you refer to the moveEnd event. It will be triggered when the event is dropped. The arguments information consists the new event  resources. If they are changed, then you can prevent the move:
    function scheduler_moveEnd: function(e) {
      var resources = e.resources;
      var event = e.event;
      //compare the resources and event fields and determine whether to prevent the event

    You can also review our Restrictions demo that shows a possible way to restrict user interaction in Scheduler.

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