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

[Solved] missing something simple

3 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jonathan
Top achievements
Rank 1
jonathan asked on 11 Aug 2011, 04:24 PM
hi trying to use the gridview control with a radgridview rowsdetail template but when selected its not showing heres my xaml i think i'm missing a reference.

<StackPanel Name="spAccSignDHSpackage" Width="350" Height="550" Background="Silver">
<Grid Width="350" Height="500">
<Grid.Resources>
<DataTemplate x:Key="RowDetailsTemplate">
<local:Info/>
</DataTemplate>
</Grid.Resources>

 

 

 

<telerik:RadGridView HorizontalAlignment="Left" Name="InboxData" VerticalAlignment="Top" Height="500" Width="350"

 

RowIndicatorVisibility="Collapsed" IsReadOnly="True" MinHeight="386"

 

AutoGenerateColumns="False" CanUserFreezeColumns="False"

 

CanUserResizeColumns="False" Margin="0,0,0,0" ColumnWidth="*" SelectionChanged="InboxData_SelectionChanged"

 

FontSize="12" FontStyle="Normal" FontWeight="Normal" CanUserSortColumns="False" CanUserInsertRows="False" CanUserDeleteRows="False">

 

<telerik:RadGridView.Columns>

 

<telerik:GridViewToggleRowDetailsColumn />

<telerik:GridViewDataColumn Header="Reference" DataMemberBinding="{Binding LoanNumber}" Width="100" />

 

<telerik:GridViewDataColumn Header="Subject" DataMemberBinding="{Binding Comment}" />

</telerik:RadGridView.Columns>

 

<telerik:RadGridView.RowDetailsTemplate>

<DataTemplate>

 

<telerik:RadTabControl BackgroundVisibility="Visible" x:Name="RadTabControl1" Width="340" Height="210"

HorizontalAlignment="Center" Margin="1" VerticalAlignment="Center"

Background="Transparent">

<telerik:RadTabItem Header="Content">

<local:Info/>

</telerik:RadTabItem>

</telerik:RadTabControl>

</DataTemplate>

</telerik:RadGridView.RowDetailsTemplate>

</telerik:RadGridView>

</Grid>

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 11 Aug 2011, 04:30 PM
Hi Jonathan,

 
You have missed to set RowDetailsVisibilityMode property of RadGridView. 


All the best,
Vanya Pavlova
the Telerik team

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

0
jonathan
Top achievements
Rank 1
answered on 12 Aug 2011, 09:38 AM
no joy changed it still not working i have the same xaml in another project works fine but no joy in this project, That why i thing i'm missing a ref somewhere.
0
Vanya Pavlova
Telerik team
answered on 12 Aug 2011, 11:00 AM
Hi Jonathan,

 
Please check the attached project for further reference. 


All the best,
Vanya Pavlova
the Telerik team

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

Tags
GridView
Asked by
jonathan
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
jonathan
Top achievements
Rank 1
Share this question
or