This is a migrated thread and some comments may be shown as answers.
Databinding
1 Answer 29 Views
This is a migrated thread and some comments may be shown as answers.
Vijay R
Top achievements
Rank 1
Vijay R asked on 04 Dec 2009, 06:50 AM
Hi,
    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 ?

Regards,
Vijay 

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 07 Dec 2009, 05:07 PM
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,
Velin
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.
Tags
Chart
Asked by
Vijay R
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or