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

Disabling some Tools in the Toolbar results in error

1 Answer 105 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
itsupport
Top achievements
Rank 1
itsupport asked on 22 Jul 2015, 08:07 PM

I have a toolbar with a dropdownlist in it, based on this example: http://demos.telerik.com/kendo-ui/toolbar/index

When I try to disable the dropdownlist within the toolbar, I get the following error on the console:

"TypeError: n.twin is not a function"

I only see this error when I use the "Kendo 2015 Q2" library. "Kendo 2015 Q1 SP2" and previous do not issue an error

See my snippet here: http://dojo.telerik.com/@dhughes/UqAci

Please let me know what I am doing wrong. Any and all help is greatly appreciated!

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 24 Jul 2015, 09:21 AM
Hello Max,

The DropDownList is a separate widget inserted via template. To disable it you should use its own API:
The same applies for every template tool.

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