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

Prevent Update request

1 Answer 209 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Justin Lee
Top achievements
Rank 1
Justin Lee asked on 01 Feb 2017, 07:23 PM

.net MVC

I have a simple gantt with a single level of tasks.  The only action that users can perform is moving tasks.  However, I don't want anything to happen after a task is moved. (no postback - it doesn't not need to be saved)  I cannot figure out how to avoid an update ajax request after a task is moved.  

In the MoveEnd event, I tried calling e.preventDefault().  This does prevent the ajax request, however it also reverts the location of the task back to where it was.  I want the user to be able to move the task, I just don't want anything to occur after a task is moved.

 

How can I achieve this?

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 03 Feb 2017, 01:42 PM
Hello Justin,

One possible workaround for such scenario is to set the dataSource data using the .data configuration. Here is a sample implementation of the described approach: dojo example.

Regards,
Peter Milchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Gantt
Asked by
Justin Lee
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or