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

Window's skin and size get lost within RadAjaxPanel

3 Answers 49 Views
Window
This is a migrated thread and some comments may be shown as answers.
CabinetZulian
Top achievements
Rank 1
CabinetZulian asked on 26 Mar 2009, 03:40 PM
Hi,

We use the Vista skin and we have an annoying problem with some of our windows, located in a RadAjaxPanel.

These Windows are well showed the first time, but when the RadAjaxPanel get updated, the window are showed with the default skin instead of Vista one, and they lost their predefined size.

I guess some of you will advice me to move these windows out of the RadAjaxPanel, but these windows are in an user control embedded in a RadAjaxPanel (because these user controls are dynamically loaded when the user click a tab) :

Note : this problem also occurs with a RadAjaxManager.

Page
    RadTabStrip
    Panel
        RadAjaxPanel
            Dynamically loaded user controls
                RadWindow (lost skin and size when RadAjaxPanel is updated)

I don't know if this is a bug or if we're doing something wrong.

Best regards,

Florian DREVET

3 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 30 Mar 2009, 12:44 PM
Hi CabinetZulian,

From your explanation it can be determined that you configure your RadWindows not declaratively but in the code-behind (e.g. this is where you set Width, Height, Skin properties). When you do an AJAX update, your windows get updated, but your code does not get called - and the windows revert to default settings (such as using "Default" skin as well as default size).

We are not able to determine why this happens because you have provided no code, but it is very likely that the same behavior will occur with any MS AJAX or ASP.NET AJAX control (e.g. <asp:TextBox>).  Please make sure that your window configuration code does indeed gets called when going through your AJAX update routines or set the window settings declaratively in your .ASCX page.

Best regards, Tervel
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
CabinetZulian
Top achievements
Rank 1
answered on 30 Mar 2009, 01:05 PM
Hi,

Thank you for your prompt reply.

Unfortunately, althought our RadWindow are located in dynamically loaded user controls, they are configured declaratively in code beside (in our ASCX)

I cannot easily send you the faulty code, but this problem may be easily reproduced with the following architecture :

Page
    RadTabStrip
    Panel
        RadAjaxPanel
            Dynamically loaded user controls
                Declaratively configurated RadWindow in each user controls (skin and size are lost when RadAjaxPanel is updated)

Best regards,
0
Svetlina Anati
Telerik team
answered on 02 Apr 2009, 01:56 PM
Hello CabinetZulian,

I prepared a simple test demo of the described setup - please find it in the attachment. As you can see, there is no problem with the size and skin of the RadWindow after the ajax request was performed.

In case the problem persists, please modify the attached demo, open a new support ticket and send it to me along with detailed reproduction instructions and explanations and I will do my best to help.

Kind regards,
Svetlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Window
Asked by
CabinetZulian
Top achievements
Rank 1
Answers by
Tervel
Telerik team
CabinetZulian
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or