Chart loosing design on Post Pack

Thread is closed for posting
6 posts, 0 answers
  1. Imar
    Imar avatar
    27 posts
    Member since:
    Apr 2007

    Posted 17 Dec 2009 Link to this post

    Hi there,

    I am using a Spline chart with a theme applied. If a control in the page causes a postback, the lines in my chart change color, resulting in some lines getting almost invisible.

    I have created a small demo project demonstrating the problem: http://imar.spaanjaars.com/Downloads/Other/TelerikChartIssue.zip
    If you open Default.aspx in the browser, there's a green and a red line. If you choose an item from the DropDownList, the page posts back and the chart changes color.

    What do I need to do to fix this?

    Also, what do I need to do to change the color of the lines? I changed about a million Appearance properties, but to no avail. Do I  / can I change the skin somehow?

    Kind regards,

    Imar
  2. Imar
    Imar avatar
    27 posts
    Member since:
    Apr 2007

    Posted 17 Dec 2009 Link to this post

    BTW: I am using version 2009.3.1103.35.

    Imar
  3. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 21 Dec 2009 Link to this post

    Hello Imar,

    You can use custom palette to change the lines color:

    <telerik:RadChart ID="RadChart1" runat="server" DataGroupColumn="Company" DataSourceID="SqlDataSource1"
                SeriesPalette="MyPalette" DefaultType="Spline" Skin="Vista" AutoLayout="True"
                OnDataBound="RadChart1_DataBound" Width="740">
                <CustomPalettes>
                    <telerik:Palette Name="MyPalette">
                        <Items>
                            <telerik:PaletteItem MainColor="Red">
                            </telerik:PaletteItem>
                            <telerik:PaletteItem MainColor="Green">
                            </telerik:PaletteItem>
                        </Items>
                    </telerik:Palette>
                </CustomPalettes>
                <PlotArea>
    ...............

    This will also fix the issue with lines losing their colors.

    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  4. Imar
    Imar avatar
    27 posts
    Member since:
    Apr 2007

    Posted 21 Dec 2009 Link to this post

    Hi Ves,

    Thanks for that; that sorted it out.

    Is the fact that the lines change colors a feature or a bug?

    Imar
  5. Ves
    Admin
    Ves avatar
    2927 posts

    Posted 23 Dec 2009 Link to this post

    H Imar,

    That's a bug and I have notified our developers of it, but I am afraid there is no certain time frame for the moment. Your Telerik points have been updated.


    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Imar
    Imar avatar
    27 posts
    Member since:
    Apr 2007

    Posted 23 Dec 2009 Link to this post

    No problem. The Palette option worked fine, so at short term, this is not an issue for me anymore.

    Kind regards,

    Imar
Back to Top