Reputation: 2982
To start, I am a telerik rookie and I have searched Telerik forums, I have posted on the forum (but no responses yet) and S/O messages (including Dynamically open a radwindow defined in JavaScript ) but I still cannot resolve my issue.
I am attempting to open a radWindow from C# codebehind (using VS 2008, Telerik.Web.UI version 2012.2.724.35), however, I am getting this error:
Microsoft JScript runtime error: Object doesn't support property or method 'radopen'
My aspx code is:
<script type="text/javascript">
function OpenRadWindow() {
var wnd = window.radopen("http://www.microsoft.com", null);
wnd.setSize(300, 400);
return false;
}
</script>
Codebehind:
protected void Page_Load(object sender, EventArgs e)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "getting data", "OpenRadWindow();", true);
}
What could be causing the error?
Update: How can I get the library to load?
Upvotes: 0
Views: 2618
Reputation: 5603
You mean here: http://www.telerik.com/community/forums/aspnet-ajax/window/microsoft-jscript-runtime-error-object-doesn-t-support-property-or-method-radopen.aspx? I see a response there that points to an answer to your question. And its exactly what I said here: Dynamically open a radwindow defined in Javascript .
Upvotes: 1