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

RadChart in RadGridView Row Details

4 Answers 63 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John Thompson
Top achievements
Rank 2
John Thompson asked on 22 Aug 2011, 08:19 PM
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>


4 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 22 Aug 2011, 09:03 PM
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 >>

0
John Thompson
Top achievements
Rank 2
answered on 23 Aug 2011, 01:21 PM
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!
0
Accepted
Rossen Hristov
Telerik team
answered on 23 Aug 2011, 01:24 PM
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 >>

0
John Thompson
Top achievements
Rank 2
answered on 23 Aug 2011, 03:58 PM
You are correct.
Tags
GridView
Asked by
John Thompson
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
John Thompson
Top achievements
Rank 2
Share this question
or