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

Skins not applying for the chart using with usercontrol

3 Answers 76 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
utchi
Top achievements
Rank 1
utchi asked on 29 Apr 2010, 03:48 PM
Hi,

I trying to change the skin for the page and chart as well in a usercontrol.

But doesn't work fine when i change the chart skin dynamically,

 Given below is the code i have used in codebehind page,

For Whole page,

Private

 

Sub skinPage_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles skincmb.SelectedIndexChanged

 

 

Dim skin As String = skincmb.SelectedItem.Text

 

SkinChoosers.ApplySkin(Page.Form, skin)

 

Dim radchart As New RadChart

 

radchart1 =

DirectCast(Userctrl1.FindControl("DetailedGraph"), RadChart)

 

radchart1.Skin = skin

 

End Sub

 

 


For Chart Only
Private
Sub skinchart_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles skinchart.SelectedIndexChanged

 

 

Dim radchart As New RadChart

 

radchart1 =

DirectCast(Userctrl1.FindControl("DetailedGraph"), RadChart)

 

radchart1.Skin = skinchart.SelectedItem.Text

 

End Sub

 


Please give suggestions to solve it.
thanks in advance.

Regards,
Maha

3 Answers, 1 is accepted

Sort by
0
utchi
Top achievements
Rank 1
answered on 04 May 2010, 07:31 AM

Hi,

Its working fine when using property SkinsOverrideStyles="true".

Regards,
Maha



 

0
Accepted
Ves
Telerik team
answered on 04 May 2010, 09:53 AM
Hello Maha,

I have attached a small example showing this. The SkinsOverrideStyles property is not modified -- its default value is false. You need to call the ClearSkin method before switching to another skin.

All the regards,
Ves
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
utchi
Top achievements
Rank 1
answered on 04 May 2010, 10:05 AM
Hi,

Thanks for your help.

Regards,
Maha




Tags
Chart (Obsolete)
Asked by
utchi
Top achievements
Rank 1
Answers by
utchi
Top achievements
Rank 1
Ves
Telerik team
Share this question
or