or
<
t:RadWindow.HeaderTemplate
>
<
DataTemplate
>
<
Grid
Margin
=
"10,0"
>
<
ContentPresenter
Content
=
"{Binding}"
HorizontalAlignment
=
"Left"
/>
<
TextBlock
x:Name
=
"txtblk"
Text
=
"XAML"
Opacity
=
"0.4"
FontSize
=
"16"
HorizontalAlignment
=
"Right"
>
<
TextBlock.Triggers
>
<
EventTrigger
RoutedEvent
=
"TextBlock.MouseEnter"
>
<
BeginStoryboard
>
<
Storyboard
>
<
DoubleAnimation
Storyboard.TargetName
=
"txtblk"
Storyboard.TargetProperty
=
"(TextBlock.Opacity)"
From
=
"0.4"
To
=
"1"
Duration
=
"0:0:0.5"
/>
</
Storyboard
>
</
BeginStoryboard
>
</
EventTrigger
>
</
TextBlock.Triggers
>
</
TextBlock
>
</
Grid
>
</
DataTemplate
>
</
t:RadWindow.HeaderTemplate
>
<Style TargetType="telerik:GridViewHeaderRow">
<Setter Property="MinHeight" Value="25"/>
<Setter Property="Height" Value="25" />
</Style>
<Style TargetType="telerik:GridViewGroupPanel">
<Setter Property="MinHeight" Value="25" />
<Setter Property="Height" Value="25" />
</Style>
</Grid.Resources>
After upgrading to the latest control version to get the Group Panel height working, the Header Row height started to behave differently then the previous version.
In the previousl version, the Header Row height is redueced by reducing the padding space around the header text.
In the latest verison, the Header Row height is reduced by reducing the padding space only from the bottom of the header text.
Did I miss any thing?
Thanks
I have a radgridview with a nested radgridview in the RowDetails.
I would like to bind a column width in the nested gridview to a
column ActualWidth in the parent gridview. I tried using a simple
elementName binding and giving the column a name, but that doesn't
seem to work. Is there a better way to do this, or another way to
reference the grids column that I am missing.
Cheers,
James
<
DataTemplate
x:Key
=
"DetailGrid"
>
<
telerik:RadGridView
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Width
=
"{Binding ActualWidth, ElementName=MainGridFirstColumn}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
DataTemplate
>
<
telerik:RadGridView
Name
=
"MainGrid"
RowDetailsTemplate
=
"{DynamicResource DetailGrid}"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Name
=
"MainGridFirstColumn"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>