I have a page loading within a RadWindow. The purpose of this page is to let the user choose a widget. Each widget has it's own page that sets its properties. So my page presents a list of widgets, the user chooses one and the page will then locate to the widget page. Each widget page has its own size and behaviors, some can resize, some can't, etc. Thus I created a function that sets the current RadWindow's URL, size and behaviors based on the selection. Below is a simplified version of this function within the RadWindow:
When this function fires, a javascript error occurs:
"Telerik.Web.UI.WindowBehaviors.Close" is null or not an object.
What would cause this?
Thanks in advance.
Regards,
Jared
function OpenAddDialog() { | |
var radWindow = GetRadWindow(); | |
if (radWindow) { | |
radWindow.set_width(800); | |
radWindow.set_height(600); | |
radWindow.set_behaviors( Telerik.Web.UI.WindowBehaviors.Close + Telerik.Web.UI.WindowBehaviors.Move ); | |
radWindow.center(); | |
radWindow.setUrl('/someotherurl.aspx'); | |
} | |
} |
When this function fires, a javascript error occurs:
"Telerik.Web.UI.WindowBehaviors.Close" is null or not an object.
What would cause this?
Thanks in advance.
Regards,
Jared