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

How to disabled editable first task..

3 Answers 139 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Antonio
Top achievements
Rank 1
Antonio asked on 05 Feb 2016, 04:43 PM

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

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 08 Feb 2016, 08:17 AM
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!
 
0
Antonio
Top achievements
Rank 1
answered on 08 Feb 2016, 04:13 PM

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..

 

 

0
Dimitar Terziev
Telerik team
answered on 09 Feb 2016, 08:03 AM
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!
 
Tags
Gantt
Asked by
Antonio
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Antonio
Top achievements
Rank 1
Share this question
or