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

RadWindow Position Error

2 Answers 73 Views
Window
This is a migrated thread and some comments may be shown as answers.
Samir
Top achievements
Rank 1
Samir asked on 11 Jan 2016, 10:54 AM

Hi,

 I m Using radwindowsmanager for displaying an edit window for Items in a radgrid 

when displayng it for the top items in the grid it's displayed very well when the items list in the grid exceeds the page boundaries and needs to scroll 

the edit window is displayed in the bottom of the page and the form for edit is not fully displayed although i force it to be maximized in show 

I need to display it from position 0 of the explorer 

 

thenks

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 Jan 2016, 11:10 AM

Hello Samir,

Generally, a RadWindow opens centered on the viewport. If this does not happen, then there is something else that affects the page scrolling (e.g., anchors with href="#", an AJAX request that changes the page height, etc.).

Nevertheless, you can use the RadWindow API (http://docs.telerik.com/devtools/aspnet-ajax/controls/window/client-side-programming/radwindow-object) to position it after opening. Here is a basic example:

var wnd = radopen(URL, wndName);
wnd.moveTo(0, 0);

OR

var wnd = radopen(URL, wndName);
setTimeout(function () {
    wnd.center();
}, 100);//adjust timeout so this code runs after the other operation has changed the page scroll


Regards,

Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Samir
Top achievements
Rank 1
answered on 11 Jan 2016, 03:52 PM

Hi Marin,

thanks alot for your reply it was it ,a problem of href="#"

 

 

 

 

Tags
Window
Asked by
Samir
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Samir
Top achievements
Rank 1
Share this question
or