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

Chart binding not wrking in DataTemplate

1 Answer 43 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:43 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
<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>

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 18 Jul 2011, 09:01 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.

Best 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!

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