custom MVVM widget visibility binding issue

2 posts, 0 answers
  1. George
    George avatar
    58 posts
    Member since:
    Apr 2014

    Posted 05 Mar Link to this post

    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.

  2. Bozhidar
    Admin
    Bozhidar avatar
    1159 posts

    Posted 07 Mar Link to this post

    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.
Back to Top