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

k-disabled does not work fo hierarchy-cell button

3 Answers 499 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 13 Jul 2015, 02:41 AM

As replicated in here http://plnkr.co/w44pS20LB0K1EpxPIq1i
In index.html line 58, i used k-ng-disabled="true" which does not work.
Any ideas??

3 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 15 Jul 2015, 05:58 AM
Hi Peter,

Thank you for contacting us.

You can use k-ng-disabled to change the disabled state of the widget based on a scope variable. k-ng-disabled is supported by all widgets containing an enabled method, except the PanelBar and Menu widget. However setting it to the hmtl anchor element is not supported scenario.
To achieve the desired functionality and to disable the <a> element you can use some of the approaches described here:
http://stackoverflow.com/questions/23425254/enable-disable-anchor-tag-using-angularjs

If you need further assistance, do not hesitate to contact us again.

Regards,
Radoslav
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Peter
Top achievements
Rank 1
answered on 15 Jul 2015, 06:32 AM
Thx. Radoslav.
Is there an example to k-ng-disabled kendo ui grid?
Also, i cant use tat stackoverflow link to get my example working, is it possible to modify my demo version to get it work with what stackoverflow suggested?
Thx in advance.
0
Radoslav
Telerik team
answered on 16 Jul 2015, 10:39 AM
Hello Peter,

The k-ng-disabled is supported by all widgets containing an enabled method. The gird widget does not have enabled method and functionality for enabling/disabling the control state. For example  a dropdownlist widget has such method and k-ng-disabled can be used with it. More information you can find here:
http://docs.telerik.com/kendo-ui/AngularJS/introduction#change-widget-state-using-k-ng-disabled-and-k-ng-readonly

I hope this helps.

Regards,
Radoslav
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
Peter
Top achievements
Rank 1
Share this question
or