This is a migrated thread and some comments may be shown as answers.
custom MVVM widget visibility binding issue
1 Answer 5 Views
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 06 Mar 2018, 12:08 AM

Hello,

I am trying to create a custom MVVM widget. I noticed that when my widget is bound and the "visible" binding is declared -- this error logs in the console:

typeError: cannot read property '0' of undefined. 

 

I have created a dojo from an example provided in your tutorial on how to build a custom widget and am able to reproduce:

https://dojo.telerik.com/ayaQEsaV

 

Please advise.

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 07 Mar 2018, 03:31 PM
Hi,

The widgets rely on a "wrapper" property being available. In general it's the same as the element property, so you can do the following:
https://dojo.telerik.com/ayaQEsaV/3

Regards,
Bozhidar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
MVVM
Asked by
Tony
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or