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

Chart Propert not binding in Data Template

3 Answers 70 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:00 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 adavance..

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>

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 18 Jul 2011, 08:58 AM
Hi 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
Trevor
Top achievements
Rank 1
answered on 02 Nov 2011, 07:40 AM
Any updates about this? I seem to be having the same problem.
0
Ves
Telerik team
answered on 04 Nov 2011, 03:38 PM
Hi Trevor,

I am afraid this has not been fixed yet. Please, accept our apologies for the inconvenience caused by this problem.

Best regards,
Ves
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

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