This is a migrated thread and some comments may be shown as answers.

Scheduler Restrict Movement between Timeline Rows

1 Answer 101 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Support@readysetwork
Top achievements
Rank 1
Support@readysetwork asked on 27 Jan 2015, 08:27 PM
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?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 29 Jan 2015, 12:42 PM
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
  //e.preventDefault();
}

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

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Support@readysetwork
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or