Chart

5 posts, 0 answers
  1. Nidhi
    Nidhi avatar
    19 posts
    Member since:
    Jun 2011

    Posted 14 Jul 2011 Link to this post

    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>

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 18 Jul 2011 Link to this post

    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!

  3. DevCraft banner
  4. Muthukumar
    Muthukumar avatar
    15 posts
    Member since:
    Oct 2011

    Posted 13 Jul 2012 Link to this post

    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 ?
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 18 Jul 2012 Link to this post

    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.

  6. Muthukumar
    Muthukumar avatar
    15 posts
    Member since:
    Oct 2011

    Posted 23 Jul 2012 Link to this post

    ya i got the new version and its working great.
    thanks for your reply

    Muthu
Back to Top
DevCraft banner