This is a migrated thread and some comments may be shown as answers.
Window destroy method not supported?
2 Answers 104 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joshua
Top achievements
Rank 1
Joshua asked on 24 Aug 2010, 03:26 PM
I use the following code to create a window but it tells me 'destroy' is not supported:

 var window = $.telerik.window.create({
                title: "Success",
//                html: "<strong>this is a test...</strong>",
                contentUrl: "/Trades/for/Manage/5",
                modal: true,
                resizable: true,
                draggable: true,
//                visible: false,
                width: 800,
                height: 600,
                onClose: function () {

                    window.destroy();
                }

            })

2 Answers, 1 is accepted

Sort by
0
nachid
Top achievements
Rank 1
answered on 25 Aug 2010, 10:35 AM
$.telerik.window has only two associated functions
  • create
  • getResizeHandlesHtml

var myNiceWindow = $.telerik.window.create({
    title: "Success",
    html: "<strong>this is a test...</strong>",
    modal: true,
    resizable: true,
    draggable: true,
    width: 800,
    height: 600,
    onClose: function(){ myNiceWindow.data("tWindow").destroy();}
})
0
Joshua
Top achievements
Rank 1
answered on 26 Aug 2010, 02:10 PM
In this forum posting one of your admins uses destroy method near the bottom of the post:

http://www.telerik.com/community/forums/aspnet-mvc/beta/reusing-windows.aspx

I want to create and reinstantiate winows please, so I need to know how to do this
Tags
Window
Asked by
Joshua
Top achievements
Rank 1
Answers by
nachid
Top achievements
Rank 1
Joshua
Top achievements
Rank 1
Share this question
or