I have a UserControl with RadAjaxPanel, two asp:panels and some RadControls like RadTextBox, RadComboBox etc. and two buttons (back and continue). I use a skinfile.skin to set all the RadControls to Vista-skin. When I first get to the aspx page panel 1 is shown (visible=true) and panel 2 is hidden (visible=false). Vista skin works and everything looks fine, but when I click on the continue button which hides panel 1 and shows panel 2 the Vista skin stops working. All the RadControls look strange. If I click on the back button and then on the continue button again the Vista look starts and everything looks as it should. Without the RadAjaxPanel this works fine.
What is the problem and how can I get it to work?
The principle code looks like this:
/***** UserControl (Without a lot of tags/attributes) ******/
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">
<asp:Panel ID="pnl1" runat="server" CssClass="candidatePersonalInfoPanel">
<telerik:RadTextBox ID="txt1" runat="server" />
<telerik:RadComboBox ID="ddl1" runat="server" />
</asp:Panel>
<asp:Panel ID="pnl2" runat="server" Visible="false">
<telerik:RadTextBox ID="txt2" runat="server" />
<telerik:RadComboBox ID="ddl2" runat="server" />
</asp:Panel>
<asp:Button ID="btnBack" CausesValidation="false" runat="server" Text="« Back" />
<asp:Button ID="btnContinue" CausesValidation="true" runat="server" Text="Continue »" />
</telerik:RadAjaxPanel>
/***** SkinFile.skin ******/
<telerik:RadComboBox runat="server"
Skin="Vista">
</telerik:RadComboBox>
<telerik:RadTextBox runat="server"
Skin="Vista"
InvalidStyleDuration="100">
</telerik:RadTextBox>