More in this section

Forums / General Discussions / Widget Control Designer Error

Widget Control Designer Error

2 posts, 0 answered
  1. Dallas Beek
    Dallas Beek avatar
    10 posts
    Registered:
    19 May 2010
    07 Feb 2011
    Link to this post
    I'm trying to create a control designer but getting a javascript error in the script file.  At line 2 below the error is "function expected".  What did I miss?.

    1.refreshUI: function () {
    2.       var data = this._propertyEditor().get_control();
    3.       jQuery("#Title").val(data.Title);
    4.   },
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Feb 2011
    Link to this post
    Hello Dallas,

    The PropertyEditor represents dialog control for editing control properties.It gets  or sets the reference to the parent property editor control when you have more than one view in the control designer ( for instance NewsControlDesginer) - get_propertyEditor()

    You should use

    // gets the javascript control object that is being designed
        get_controlData: function () {
            return this.get_propertyEditor().get_control();
        },

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered