Gantt task edit in js

3 posts, 0 answers
  1. Paweł
    Paweł avatar
    6 posts
    Member since:
    Apr 2016

    Posted 01 Aug 2016 Link to this post


    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,


  2. Veselin Tsvetanov
    Veselin Tsvetanov avatar
    1241 posts

    Posted 02 Aug 2016 Link to this post

    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.

    Veselin Tsvetanov
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
  3. Paweł
    Paweł avatar
    6 posts
    Member since:
    Apr 2016

    Posted 09 Aug 2016 in reply to Veselin Tsvetanov Link to this post

    Great, thanks :)




Back to Top