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

Drag and drop a text to an existing event in the Schedular

5 Answers 28 Views
This is a migrated thread and some comments may be shown as answers.
Rajitha
Top achievements
Rank 1
Rajitha asked on 06 Dec 2019, 08:15 AM

Hi,

i've gone through this Sandbox example and it works perfectly. But how to drag and drop a text/list item to edit an existing event. How we can do that with onDataBound 

Thanks!

5 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 10 Dec 2019, 08:23 AM

Hello Rajitha,

Thank you for the provided example. A possible way to edit the event when dropping a text is to check whether the dropTarget has k-event class. You can then get the dataItem by uid, and use the set method to edit the event:

if(e.dropTarget.hasClass('k-event')) {
    var uid = e.dropTarget.data('uid');
    var dataSource = scheduler.dataSource;
    var item = dataSource.data().find((event) => event.uid === uid);
    item.set('title', dataItem.text);
}

Here is the modified example for reference.

Let me know if this works for you.

Regards,
Martin
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Rajitha
Top achievements
Rank 1
answered on 13 Dec 2019, 05:59 AM
Hi, Martin the given example solved my problem. Thanks for that. I need to show can drop mouse pointer inside the scheduler. At the moment it is showing. Isn't kendo-vue able to handle this kind of scenario?  
0
Rajitha
Top achievements
Rank 1
answered on 13 Dec 2019, 07:27 AM
Hi, Martin the given example solved my problem. Thanks for that. I need to show "can drop" mouse pointer inside the scheduler. At the moment it is not showing. Isn't kendo-vue able to handle this kind of scenario?  
0
Accepted
Martin
Telerik team
answered on 16 Dec 2019, 04:55 PM

Hello Rajitha,

The Scheduler does not change the mouse pointer when dragging out-of-the-box, as it does not have an appropriate event to detect when an item is dragged from another widget. A possible approach would be to bind to the mouseenter event of the div element, from which the Scheduler is initialized, and then change the cursor. 

Regards,
Martin
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Rajitha
Top achievements
Rank 1
answered on 17 Dec 2019, 05:34 AM

Hi Martin,

Noted that and thank you so much!!!!

Asked by
Rajitha
Top achievements
Rank 1
Answers by
Martin
Telerik team
Rajitha
Top achievements
Rank 1
Share this question
or