RadChart SeriesMapping.SeriesDefinition

5 posts, 1 answers
  1. Suresh K
    Suresh K avatar
    68 posts
    Member since:
    Apr 2009

    Posted 23 Sep 2011 Link to this post

    Hi

    I am new to Telerik Silverlight Tools.
    Can any body tell me how to change the SeriesMapping.SeriesDefinition at runtime.
    Actually i have the List of SeriesDefinition in Combobox.
    i would like to change the SeriesMapping.SeriesDefinition in radComboBox1_SelectionChanged event. 

    <telerik:RadComboBox HorizontalAlignment="Left" Margin="314,28,0,0" Name="radComboBox1" VerticalAlignment="Top" Width="250" DisplayMemberPath="SeriesName" SelectionChanged="radComboBox1_SelectionChanged">
                <telerik:RadComboBoxItem Content="Area3DSeriesDefinition" />
                <telerik:RadComboBoxItem Content="AreaSeriesDefinition" />
                <telerik:RadComboBoxItem Content="Bar3DSeriesDefinition" />
            </telerik:RadComboBox>
            <telerik:RadChart Height="328" HorizontalAlignment="Center" Margin="12,80,10,10" Name="radChart1" VerticalAlignment="Top" Width="834">
                <telerik:RadChart.DefaultView>
                    <telerik:ChartDefaultView>
                        <telerik:ChartDefaultView.ChartTitle>
                            <telerik:ChartTitle Content="Demo">
                            </telerik:ChartTitle>
                        </telerik:ChartDefaultView.ChartTitle>
                        <telerik:ChartDefaultView.ChartArea>
                            <telerik:ChartArea>
                                <telerik:ChartArea.AxisX>
                                    <telerik:AxisX Title="Country"></telerik:AxisX>
                                </telerik:ChartArea.AxisX>
                                <telerik:ChartArea.AxisY>
                                    <telerik:AxisY Title="Billion dollars"></telerik:AxisY>
                                </telerik:ChartArea.AxisY>
                            </telerik:ChartArea>
                        </telerik:ChartDefaultView.ChartArea>
                    </telerik:ChartDefaultView>
                </telerik:RadChart.DefaultView>
                <telerik:RadChart.SeriesMappings>
                    <telerik:SeriesMapping LegendLabel="Sales">
                        <telerik:SeriesMapping.SeriesDefinition>
                            <telerik:LineSeriesDefinition ShowItemLabels="False">
                            </telerik:LineSeriesDefinition>
                        </telerik:SeriesMapping.SeriesDefinition>
                        <telerik:SeriesMapping.ItemMappings>
                            <telerik:ItemMapping DataPointMember="YValue" FieldName="Sales">
                            </telerik:ItemMapping>
                            <telerik:ItemMapping DataPointMember="XCategory" FieldName="Name">
                            </telerik:ItemMapping>
                        </telerik:SeriesMapping.ItemMappings>
                    </telerik:SeriesMapping>
                    <telerik:SeriesMapping LegendLabel="Turnover">
                        <telerik:SeriesMapping.SeriesDefinition>
                            <telerik:LineSeriesDefinition ShowItemLabels="False">
                            </telerik:LineSeriesDefinition>
                        </telerik:SeriesMapping.SeriesDefinition>
                        <telerik:SeriesMapping.ItemMappings>
                            <telerik:ItemMapping DataPointMember="YValue" FieldName="Turnover">
                            </telerik:ItemMapping>
                            <telerik:ItemMapping DataPointMember="XCategory" FieldName="Name">
                            </telerik:ItemMapping>
                        </telerik:SeriesMapping.ItemMappings>
                    </telerik:SeriesMapping>
                </telerik:RadChart.SeriesMappings>
            </telerik:RadChart>
    Thanks & Regards
    Suresh K
  2. Answer
    Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 27 Sep 2011 Link to this post

    Hello Suresh,

    This is shown in our demo with full source code.

    Regards,
    Evgenia
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft banner
  4. Suresh K
    Suresh K avatar
    68 posts
    Member since:
    Apr 2009

    Posted 28 Sep 2011 Link to this post

    Hi Evgenia .

    Thanks for Reply.

    it's very help full to me.

     

    Thanks & Regards

     

    Suresh K

  5. jagan
    jagan avatar
    6 posts
    Member since:
    Nov 2010

    Posted 26 Mar 2013 Link to this post

    Hi All,
     In telerik im not able to see any demo. It is only showing 0% with "loading example" image...See this link
    http://demos.telerik.com/silverlight/#Chart/EmptyValues

    Can anyone help me out..
  6. Evgenia
    Admin
    Evgenia avatar
    1407 posts

    Posted 26 Mar 2013 Link to this post

    Hi jagan,

    We removed RadChart from our online demos - you may find why by reading this blogpost. RadChart's demos are now in separate qsf - here is a link to it.

    Greetings,
    Evgenia
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner