2 posts, 0 answers
  1. Vijay R
    Vijay R avatar
    4 posts
    Member since:
    Dec 2009

    Posted 04 Dec 2009 Link to this post

        I am trying to use databinding in RadChart.But i couldn't add ItemsMapping to the SeriesMaapping since the ItemMappings (whcih is of type ItemMappingCollection) is Readonly property?Please let me know how to resolve this ?

  2. Velin
    Velin avatar
    391 posts

    Posted 07 Dec 2009 Link to this post

    Hi Vijay R,

     Indeed, the ItemMappings property of the SeriesMapping type is read only, but being a collection you can still add items to it. Here is a sample code:

    SeriesMapping sm = new SeriesMapping();
    sm.ItemMappings.Add(new ItemMapping() { FieldName = "Y", DataPointMember.YValue });

    You can find more information about data binding RadChart in our online help system available here and also this specific article.

    Hope this will help.

    Sincerely yours,
    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