This is a migrated thread and some comments may be shown as answers.
Gantt task edit in js
2 Answers 16 Views
This is a migrated thread and some comments may be shown as answers.
Paweł
Top achievements
Rank 1
Paweł asked on 01 Aug 2016, 08:17 AM

Hi,

I'm attached to task edit and save events. When I open the task edit popup and change one field, I need to update the task end date. I tried editing e.task.end, e.values.end fields. The problem is, that when I click save and the save event is triggered, the values in e.values are filled with old values so the task is saved with old values.

Is there any way to update those values in the "edit" event, so when the "save" event is triggered, my task values are updated?

Thanks a lot,

Paweł

2 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 02 Aug 2016, 02:11 PM
Hi Pawel,

I would suggest you to change directly the input in the edit pop-up and to call the change() method on it. This way you will notify the widget that you have changed the value. A simple implementation of the above could be found in the following Dojo demo. Note the onEdit() event handler.

Regards,
Veselin Tsvetanov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Paweł
Top achievements
Rank 1
answered on 09 Aug 2016, 08:50 AM

Great, thanks :)

 

Regards,

Pawel

Tags
Gantt
Asked by
Paweł
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Paweł
Top achievements
Rank 1
Share this question
or