Hi there,
I hope somebody can help me with this one.
I want to change the skin of a particular type of controls by setting the TargetControls collection of the RadSkinManager in code behind.
I use the following code:
The first time the event is hit the skin of the RadButton is changed on the page, which is OK.
After the second time the event is hit the skin of the RadButton is not changed.
Does anybody know why the skin is only changed the first time the event is hit?
Regards,
Marcel
I hope somebody can help me with this one.
I want to change the skin of a particular type of controls by setting the TargetControls collection of the RadSkinManager in code behind.
I use the following code:
protected
void
cbSkins_SelectedIndexChanged(
object
sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs )
{
RadSkinManager1.TargetControls.Clear();
string
skinName = e.Text;
RadSkinManager1.TargetControls.Add(Telerik.Web.UI.ControlTypeToApplySkin.RadButton, skinName);
}
The first time the event is hit the skin of the RadButton is changed on the page, which is OK.
After the second time the event is hit the skin of the RadButton is not changed.
Does anybody know why the skin is only changed the first time the event is hit?
Regards,
Marcel