This is a migrated thread and some comments may be shown as answers.

unable to get value of the property 'open'

1 Answer 65 Views
Window
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 26 Mar 2013, 10:16 PM
I get this error when using the kendo window. It’s odd because that’s how the examples show on the Telerik Kendo demos (http://demos.kendoui.com/web/window/index.html) and it works, but it will throw this error anyways. I had to download the latest script files for Telerik Kendo UI Web (http://www.telerik.com/account/your-products/internal-builds.aspx) just to even get the window to work.

Error occurs on the .open() in the script to open the kendo window.

What do I need to do to stop having the run time error pop up?

Partial View:
@{
    ViewBag.Title = "User Preferences";
}
 
<h2>User Preferences</h2>
@(Html.Kendo().Window()
    .Name("winPreferences")
      .Content(Html.Partial("_UserPreferences").ToHtmlString())
      .Title("Edit User Preferences")
      .Draggable()
      .Resizable()
      .Width(500)
 )
<script>
     
        
    $("#winPreferences").data("kendowindow").open();
        
    
</script>
Additional info: 
Using jquery-1.9.0, kendoui.web.2013.1.325.commercial

1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 27 Mar 2013, 01:53 PM
Hi Paul,

The Kendo UI Widget names are case sensitive and you should change your code like this to get it working:
$("#winPreferences").data("kendoWindow").open();

Kind regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Paul
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or