I have a RadSkinManager definition like this:
Instead of using MasterPages the site is built on Controls (ascx) dynamically loaded depending on requested service. When using the definition above, all controls have the Default skin applied except RadComboBoxes and RadButtons that are statically defined on the default.aspx page (so far, so good). RadComboBoxes and RadButtons on dynamically loaded controls have the Default skin applied until the first postback, at which time they get their explicitly assigned skins applied.
I have tried to add the following line to the Page_PreRender method on the default.aspx page:
But this doesn't make any difference.
Is something else required in order to get dynamically loaded controls to get the assigned skin on first load instead of on first postback?
I have also noted that if the SkinChooser is displayed, All RadComboBoxes are correctly styled after the first postback. If the SkinChooser is not displayed (and no other changes made), all RadComboBoxes lose their styling altogether after first postback.
<
telerik:RadSkinManager
runat
=
"server"
ID
=
"RadSkinManager1"
ShowChooser
=
"True"
Skin
=
"Default"
>
<
TargetControls
>
<
telerik:TargetControl
ControlsToApplySkin
=
"RadComboBox"
Skin
=
"Glow"
Enabled
=
"true"
/>
<
telerik:TargetControl
ControlsToApplySkin
=
"RadButton"
Skin
=
"Black"
Enabled
=
"true"
/>
</
TargetControls
>
</
telerik:RadSkinManager
>
Instead of using MasterPages the site is built on Controls (ascx) dynamically loaded depending on requested service. When using the definition above, all controls have the Default skin applied except RadComboBoxes and RadButtons that are statically defined on the default.aspx page (so far, so good). RadComboBoxes and RadButtons on dynamically loaded controls have the Default skin applied until the first postback, at which time they get their explicitly assigned skins applied.
I have tried to add the following line to the Page_PreRender method on the default.aspx page:
this
.RadSkinManager1.Skin =
"Default"
;
But this doesn't make any difference.
Is something else required in order to get dynamically loaded controls to get the assigned skin on first load instead of on first postback?
I have also noted that if the SkinChooser is displayed, All RadComboBoxes are correctly styled after the first postback. If the SkinChooser is not displayed (and no other changes made), all RadComboBoxes lose their styling altogether after first postback.