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

RadWindow repositions after centering it.

2 Answers 38 Views
Window
This is a migrated thread and some comments may be shown as answers.
Wim
Top achievements
Rank 1
Wim asked on 27 Jun 2011, 04:35 PM
Hi,

I have a page with a radgrid, scrolled down to a specfic row. I click on the row and make my window visible by setting the "VisibleOnPageLoad"-property to True and I center it using the "OnClientAutoSizeEnd"-clientevent.
The window is positioned correctly at this moment but is then automatically repositioned lower on the page.
Any ideas which setting could be causing this?

This is the definition of my window:
<telerik:RadWindow ID="wdwDetail" Modal="true" Skin="Telerik" Width="800px" AutoSize="true" AutoSizeBehaviors="Height" OnClientAutoSizeEnd="OnClientShowCenterOnly" runat="server" VisibleOnPageLoad="false" VisibleStatusbar="false" IconUrl="~/img/favicon.ico" ShowContentDuringLoad="true" Title="Detailed Info" DestroyOnClose="false" EnableShadow="true" Behaviors="Close">
    <ContentTemplate>
        ...
    </ContentTemplate>
</telerik:RadWindow>

Note that it isn't defined inside a RadWindowManager as I want to use a asp updatepanel inside it.

Thanks in advance,

Wim

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 28 Jun 2011, 08:50 AM
Hello Wim,

There are known issues with absolutely positioned iframes which take the focus, so if you have an iframe in the content template it may be causing this behavior. To work around that you need to add a small timeout when setting the focus.

You can also try examining your custom centering method to see if it produces the expected result in all cases.
 
If the above does not help you resolve the situation please open a support ticket and send us a simple, runnable project that isolates this behavior so we can examine it locally and provide a more accurate answer.


Greetings,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Wim
Top achievements
Rank 1
answered on 28 Jun 2011, 09:41 AM
The timeout was the solution!

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