I create a radwindow in my codebehind (when a linkbutton is clicked) and right when the window comes up it looks fine, but then like a split-second later, everything shifts to the right. The content in the parent page shifts all the way to the right and the radwindow goes to somewhere near the center of the screen. Why is this happening? I've tried a bunch of different settings, but it's alway the same result. Here's my code:
'Create a new window and add it dynamically
Dim newWindow As RadWindow = New RadWindow
newWindow.ID =
"RadWindow1"
newWindow.NavigateUrl =
"./Dialog.aspx"
newWindow.VisibleOnPageLoad =
True
newWindow.Enabled =
True
newWindow.Visible =
True
newWindow.Width = 250
newWindow.Height = 500
newWindow.Behaviors = WindowBehaviors.Close
newWindow.Animation = WindowAnimation.Fade
newWindow.OffsetElementID =
"searchArea"
newWindow.ReloadOnShow =
True
newWindow.Modal =
True
newWindow.OnClientClose =
"initiateCallback"
'Add the newly created RadWindow to the RadWindowManager's collection
Singleton.Windows.Add(newWindow)
7 Answers, 1 is accepted
I tried to reproduce you scenario but to no avail. I have prepared and attached one sample test project, please have a try with it. When you load the page the window is being called from the codebehind and the coordinates seem fine.
If you reproduce the issue with this test project, please specify your exact scenario you are doing and the browser version you have.
All the best,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
As a follow-up, I noticed a non-centered modal that you are trying to open window in the code you have provided. By default all modal windows are aimed to be opened in the center. That is why when you set your custom coordinates the window goes back to the center again automatically.
This is expected behavior and is not considered as bug. Could you please tell us what is the reason why you want non-centered modal?
All the best,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Unfortunately we could not reproduce your scenario again. What content do you have on the parent page? Are you using some horizontal scrolling so that the content is being moved?
Since we cannot get you scenario working on our own, we kindly request you open a support ticket and send us one sample project including the parent page. Please include one screenshot representing the issue as well.
Best wishes,
George
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
In Modal it opens in the center vertically but all the way to the left in IE 7. It works correctly in Firefox.
Modal to false centers it - but creates a different problem. If you stay on the same page (Radscheduler) and open, then close, then open again - the window opens ups further down the page.
In other words - with modal = false each time I open a window (without refreshing the underlying page) it opens in a different position.
I'm going to test mine again after ensuring the Doctype is all correct (I'm working in DotNetNuke). I'll report back.
WB
The troubles I had were consistent with the issues mentioned by others in the post.