Gantt task edit in js

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

    Posted 01 Aug Link to this post

    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. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    290 posts

    Posted 02 Aug 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.

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

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

    Great, thanks :)

     

    Regards,

    Pawel

Back to Top