This is a migrated thread and some comments may be shown as answers.

Chart

4 Answers 59 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Nidhi
Top achievements
Rank 1
Nidhi asked on 14 Jul 2011, 08:41 AM
Hi Team,

I am showing charts in Listbox. I have placed RadChart Control in Itemplate. its not binding the ChartData and SeriesDefinition property. These property has value and preperty get is also called . But still its not showing series, saying "No data Series". On the other side, ChartTitle property is bound and showing chart title.

Please see this issue and send any sample.

Thanks in advance..

Regards,
Nidhi


XAMl code attached

<ListBox  Grid.Column="0" ItemsSource="{Binding DrillDownChart}" >
           <ListBox.ItemsPanel>
               <ItemsPanelTemplate>
                   <toolKit:WrapPanel  Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Stretch"  >
                   </toolKit:WrapPanel>
               </ItemsPanelTemplate>
           </ListBox.ItemsPanel>
           <ListBox.ItemTemplate >
               <DataTemplate>
                   <Grid Width="110" Height="114">
 
                       <Grid.RowDefinitions>
                           <RowDefinition Height="*" />
                           <RowDefinition Height="Auto" />
                       </Grid.RowDefinitions>
                       <Border Grid.Row="0">
 
                           <telerik:RadChart ItemsSource="{Binding ChartData}" SeriesMappings="{Binding ChartSeriesMappings}" >
 
 
 
                               <telerik:RadChart.DefaultView>
                                   <telerik:ChartDefaultView ChartLegendPosition="Right">
                                       <telerik:ChartDefaultView.ChartTitle>
                                           <telerik:ChartTitle Content="{Binding ChartTitle}"/>
 
 
                                       </telerik:ChartDefaultView.ChartTitle>
                                       <telerik:ChartDefaultView.ChartArea>
                                           <telerik:ChartArea LabelFormatBehavior="None"   SmartLabelsEnabled="True"  >
                                                
                                           </telerik:ChartArea>
                                       </telerik:ChartDefaultView.ChartArea>
                                       <telerik:ChartDefaultView.ChartLegend>
                                           <telerik:ChartLegend Name="ChartLegend"
                                                LegendItemMarkerShape="Triangle" />
                                       </telerik:ChartDefaultView.ChartLegend>
                                   </telerik:ChartDefaultView>
                               </telerik:RadChart.DefaultView>
 
                           </telerik:RadChart>
 
 
                       </Border>
 
                       <TextBlock Text="{Binding ChartTitle}" Grid.Row="1" />
 
                   </Grid>
               </DataTemplate>
           </ListBox.ItemTemplate>
       </ListBox>
<ListBox Grid.Column="0" ItemsSource="{Binding DrillDownChart}" >
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<toolKit:WrapPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Stretch" >
</toolKit:WrapPanel>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate >
<DataTemplate>
<Grid Width="110" Height="114">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Border Grid.Row="0">
<telerik:RadChart ItemsSource="{Binding ChartData}" SeriesMappings="{Binding ChartSeriesMappings}" >
<telerik:RadChart.DefaultView>
<telerik:ChartDefaultView ChartLegendPosition="Right">
<telerik:ChartDefaultView.ChartTitle>
<telerik:ChartTitle Content="{Binding ChartTitle}"/>
</telerik:ChartDefaultView.ChartTitle>
<telerik:ChartDefaultView.ChartArea>
<telerik:ChartArea LabelFormatBehavior="None" SmartLabelsEnabled="True" >
</telerik:ChartArea>
</telerik:ChartDefaultView.ChartArea>
<telerik:ChartDefaultView.ChartLegend>
<telerik:ChartLegend Name="ChartLegend"
LegendItemMarkerShape="Triangle" />
</telerik:ChartDefaultView.ChartLegend>
</telerik:ChartDefaultView>
</telerik:RadChart.DefaultView>
</telerik:RadChart>
</Border>
<TextBlock Text="{Binding ChartTitle}" Grid.Row="1" />
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>

4 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 18 Jul 2011, 09:00 AM
Hello Nidhi,

Thank you for contacting us and for the details provided. Indeed, there is a problem in this scenario. I have logged it in our Public Issue Tracking System, so you can track its status here. I have updated your Telerik points for reporting this.

Kind regards,
Ves
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Muthukumar
Top achievements
Rank 1
answered on 13 Jul 2012, 01:35 PM
is there any update for this scenario??
i need the same solution.
Need to Display the RadChart inside a ListBox Datatemplate.
so how to add the series mapping dynamically ?
0
Ves
Telerik team
answered on 18 Jul 2012, 07:32 AM
Hi Muthukumar,

This problem is solved in our new RadChartView and we would encourage you to use this control. You can check how it compares to RadChart here.

Best regards,
Ves
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Muthukumar
Top achievements
Rank 1
answered on 23 Jul 2012, 05:45 AM
ya i got the new version and its working great.
thanks for your reply

Muthu
Tags
Chart
Asked by
Nidhi
Top achievements
Rank 1
Answers by
Ves
Telerik team
Muthukumar
Top achievements
Rank 1
Share this question
or