Skins not applying for the chart using with usercontrol

Thread is closed for posting
4 posts, 1 answers
  1. utchi
    utchi avatar
    36 posts
    Member since:
    May 2009

    Posted 29 Apr 2010 Link to this post

    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

  2. utchi
    utchi avatar
    36 posts
    Member since:
    May 2009

    Posted 04 May 2010 Link to this post

    Hi,

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

    Regards,
    Maha



     

  3. Answer
    Ves
    Admin
    Ves avatar
    2926 posts

    Posted 04 May 2010 Link to this post

    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.
  4. utchi
    utchi avatar
    36 posts
    Member since:
    May 2009

    Posted 04 May 2010 Link to this post

    Hi,

    Thanks for your help.

    Regards,
    Maha




Back to Top