Widget Control Designer Error

Posted by Community Admin on 03-Aug-2018 20:36

Widget Control Designer Error

All Replies

Posted by Community Admin on 07-Feb-2011 00:00

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.   ,

Posted by Community Admin on 07-Feb-2011 00:00

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

This thread is closed