This is a migrated thread and some comments may be shown as answers.
Dom Object Telerik Window
3 Answers 23 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.
Peter
Top achievements
Rank 1
Peter asked on 27 Oct 2011, 02:49 PM

Hi There,

Using following gets the window DOM object 

var dialog = $.telerik.window.create({
        title     : "Success",
        html      : "<strong>this is a test...</strong>",
        modal     : true,
        resizable : false,
        draggable : true,
        visible   : false,
        width     : 300,
        height    : 100
    })
    .data('tWindow').open();

How would I get the Window DOM Object for "SomeWindow" created using following? (Probably simple but newbie here)

    <% Html.Telerik().Window()
           .Name("SomeWindow")
           .Title("Window")
           .Width(380)
           .Height(180)
           .Visible(true)
      ....etc

using JQuery  

var elementWindow =  $('#SomeWindow').data('tWindow')

will return me the client-side object but not the window Dom object.

Any help here would be much appreciated.
Thx,
Peter

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Oct 2011, 03:58 PM
Hello Peter,

Actually, in both cases above you will get the Window client object. In order to get the DOM element, you can use

obj.element

where obj is the Window client object.

Best wishes,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
OgOJack
Top achievements
Rank 1
answered on 28 Oct 2011, 11:00 AM
I have obj.element is null in IE7. I'm using version 2011.2.712
0
Dimo
Telerik team
answered on 28 Oct 2011, 12:02 PM
Hi Ogojack,

Please check for Javascript errors and provide a live URL or a runnable project if the problem persists.

Greetings,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Window
Asked by
Peter
Top achievements
Rank 1
Answers by
Dimo
Telerik team
OgOJack
Top achievements
Rank 1
Share this question
or