RadChart in RadGridView Row Details

5 posts, 1 answers
  1. John Thompson
    John Thompson avatar
    44 posts
    Member since:
    Dec 2009

    Posted 22 Aug 2011 Link to this post

    I have a need to place a RadChart (or two) in the row details of a RadGridView however when I do, the row details will not display.  If I comment out the RadChart the "empty" row details work just fine.

    This is a sample of the XAML.

    <telerik:RadGridView x:Name="StatisticsView" AutoGenerateColumns="False" EnableColumnVirtualization="True" EnableRowVirtualization="True" IsReadOnly="True" RowDetailsVisibilityChanged="StatisticsView_RowDetailsVisibilityChanged" RowDetailsVisibilityMode="Collapsed" ShowGroupPanel="False">
        <telerik:RadGridView.Columns>
            <telerik:GridViewToggleRowDetailsColumn />
             
            <telerik:GridViewDataColumn Header="Group Name" IsReadOnly="True" UniqueName="GroupName" />
             
            <telerik:GridViewDataColumn Header="Group Ranking" IsReadOnly="True" UniqueName="GroupRank" />             
        </telerik:RadGridView.Columns>
         
        <telerik:RadGridView.RowDetailsTemplate>
            <DataTemplate>
                <StackPanel Orientation="Horizontal" MinHeight="320">
                    <telerik:RadChart>
                        <telerik:RadChart.DefaultView>
                            <telerik:ChartDefaultView ChartTitle="Why Doesn't This Work?">
                            </telerik:ChartDefaultView>
                        </telerik:RadChart.DefaultView>
                    </telerik:RadChart>
                </StackPanel>
            </DataTemplate>
        </telerik:RadGridView.RowDetailsTemplate>
    </telerik:RadGridView>


  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 22 Aug 2011 Link to this post

    Hi John Thompson,

    Does the RadChart display if you place it directly on the Silverlight page in the same manner, i.e. in a StackPanel which is a direct child of the page? 

    Best wishes,
    Ross
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
  4. John Thompson
    John Thompson avatar
    44 posts
    Member since:
    Dec 2009

    Posted 23 Aug 2011 Link to this post

    Ah!  The ChartTitle cannot be expressed in this manner but must use ChartTitle.Content.  The RowDetailsTemplate does not throw the error so I was not aware of the exception!
  5. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 23 Aug 2011 Link to this post

    Hello John Thompson,

    So, as far as I understand you solved the problem? Am I correct?

    Greetings,
    Ross
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  6. John Thompson
    John Thompson avatar
    44 posts
    Member since:
    Dec 2009

    Posted 23 Aug 2011 Link to this post

    You are correct.
Back to Top
DevCraft banner