This is a migrated thread and some comments may be shown as answers.
Client centered window
2 Answers 30 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.
Bernt
Top achievements
Rank 1
Bernt asked on 18 Nov 2011, 11:49 AM
Hi,

I'm using Telerik MVC version 2011.2.712 with .Net 4.0 in visual studio 2010.
When creating a client window the window is posisioned far (1652px) down the page instead of being centered.

<div class="t-widget t-window" style="top: 1652px; left: 0px; ">
<
div class="t-window-titlebar t-header"
<
span class="t-window-title">Success</span><div class="t-window-actions t-header">
<
a href="#" class="t-link"><span class="t-icon t-close">Close</span></a></div></div>
<
div class="t-window-content t-content" style="width:300px;height:100px;">
<
strong>this is a test...</strong></div></div>

This is how I create the window:
function openProduct2(productID) {
    var dialog1 = $.telerik.window.create({
        name: "Window",
        title: "Success",
        html: "<strong>this is a test...</strong>",
        modal: true,
        resizable: false,
        draggable: true,
        visible: false,
        width: 300,
        height: 100
    });
.data('tWindow').center.open();

I've read the forum theads, including testing version 2011.3.1115 without any luck.

Regards,
Rune

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 18 Nov 2011, 12:02 PM
Hi Rune,

The following line has two mistakes - a missing object at the beginning and missing brackets for the center method. When I fixed these, the Window worked as expected.

.data('tWindow').center.open();

Regards,
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
Bernt
Top achievements
Rank 1
answered on 18 Nov 2011, 01:41 PM
Hi Dimo,

That worked :-)

Thanks,
Rune
Tags
Window
Asked by
Bernt
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Bernt
Top achievements
Rank 1
Share this question
or