Window's skin and size get lost within RadAjaxPanel

4 posts, 0 answers
  1. CabinetZulian
    CabinetZulian avatar
    12 posts
    Member since:
    Apr 2007

    Posted 26 Mar 2009 Link to this post

    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
  2. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 30 Mar 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. CabinetZulian
    CabinetZulian avatar
    12 posts
    Member since:
    Apr 2007

    Posted 30 Mar 2009 Link to this post

    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,
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 02 Apr 2009 Link to this post

    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.
Back to Top