Personalized point mark

Thread is closed for posting
2 posts, 1 answers
  1. Quantesys IT
    Quantesys IT avatar
    21 posts
    Member since:
    Feb 2009

    Posted 15 Oct 2009 Link to this post

    I posted a message in an existing thread but the thread is noticed as "Answered". I don't no if you check all threads or only the opened ones.

    I try to personalize the point mark images of my Chart (server-side) but the modifications are not applied correctly (the default point mark icons are not replaced).
    My code is based on a sample code that I found in another Thread:

    protected void Page_Load(object sender, EventArgs e)       
        RadChart2.BeforeLayout += new EventHandler<EventArgs>(RadChart2_BeforeLayout);       
    void RadChart2_BeforeLayout(object sender, EventArgs e)       
        foreach (ChartSeriesItem item in RadChart2.Series[0].Items)       
            string imageUrl = "MyImage.jpg";       
            if(item.XValue > 5)       
                imageUrl = "MyImage2.jpg";       
            item.PointAppearance.FillStyle.FillType = Telerik.Charting.Styles.FillType.Image;       
            item.PointAppearance.FillStyle.FillSettings.BackgroundImage = imageUrl;       

    I try with different image format : PNG, JPG... but my point marks stay with the default images. I am sure that my URL is well-formed because I use it on other pages of my website without problems.

    Thank you for your help.

    Best regards,

  2. Answer
    Ves avatar
    2927 posts

    Posted 20 Oct 2009 Link to this post

    Hello Joël ,

    Please check the other forum thread, where you posted this question. You will find an example attached to my reply there.

    Best regards,
    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.
Back to Top