How to disabled editable first task..

4 posts, 0 answers
  1. Antonio
    Antonio avatar
    11 posts
    Member since:
    Sep 2012

    Posted 05 Feb Link to this post

    How can i disable the editable of the first task.. 

     For example... i don't want that the users cans edit the task with Id = 1 ...

    prohibited change.. Name, Dates... etc.  ONLY FIRST TASK.

    The code:   e.preventDefault()  not work...  show error with "bind"

     Using 

    if (e.task.id == 1) {

    e.preventDefault() 

    }

    show error:  Error en tiempo de ejecución de JavaScript: No se puede obtener la propiedad 'bind' de referencia nula o sin definir

  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 08 Feb Link to this post

    Hi,

    In order to disable the edit of the first task please handle the edit event and cancel it if the id of the task being edited matched some condition.

    Regards,
    Dimitar Terziev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Antonio
    Antonio avatar
    11 posts
    Member since:
    Sep 2012

    Posted 08 Feb Link to this post

    Hi, thanks for your answer...

     

    I did the example following the page  http://docs.telerik.com/kendo-ui/api/javascript/ui/gantt#events-edit

     BUT...

     When I do clic in a cell for edit...  it show the next error:

    (ADD IMAGE)

     

    I need set some configuration? I do not know what happening..

     

     

  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 09 Feb Link to this post

    Hi,

    Could you provide a dojo snippet with the current implementation that you are using so  I could inspect it locally.

    Regards,
    Dimitar Terziev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready