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

.UpdateLayout not showing changed HeaderCellStyle

5 Answers 91 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Peter Meinl
Top achievements
Rank 1
Peter Meinl asked on 19 Feb 2010, 11:41 AM

Im am changing the GridView HeaderCellStyle in code.
Calling .UpdateLayout does not show the new header style.

    Private Sub chkComplexFilter_Checked(ByVal sender As ObjectByVal e As System.Windows.RoutedEventArgs) Handles chkComplexFilter.Checked  
        ShowFilterHeader("GridViewHeaderCellFilterComplexStyle")  
        RadGridView1.UpdateLayout()  
    End Sub 
 
    Sub ShowFilterHeader(ByVal styleName As String)  
        For Each col In RadGridView1.Columns  
            col.HeaderCellStyle = CType(Resources(styleName), Style)  
        Next 
    End Sub 

Resizing the window (using the bottom right window corner) to make parts of the grid invisible and than visible again causes the new style to be shown in the freshly painted parts.

5 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 22 Feb 2010, 07:20 AM
Hi Peter,

I have tried to replicate this using one of our latest internal builds, but it is working as expected even without UpdateLayout() call. Can you please update your binaries to use the one from the latest internal build and verify the state of this issue?

All the best,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Peter Meinl
Top achievements
Rank 1
answered on 22 Feb 2010, 08:40 AM
I installed 00431RadControls_for_WPF_2009_3_1419_Trial.
The problem persists.

BTW:
May be your RaDock code somehow references an older version.
With the above version it get the following error as soon as I add a
<radDock:RadPaneGroup 

Could not load file or assembly 'Telerik.Windows.Controls, Version=2009.3.1418.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
0
Hristo
Telerik team
answered on 23 Feb 2010, 01:59 PM
Hi Peter,

There was a problem with the references in the version you are referring. A new latest internal build was uploaded. Its version is 2009.3.1423. Download it and give it a try.

All the best,
Hristo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Peter Meinl
Top achievements
Rank 1
answered on 23 Feb 2010, 02:19 PM

My Layout Problem still exists with Version 2009.3.1423.

Here are the two styles GridViewHeaderCellFilterStyle, GridViewHeaderCellFilterComplexStyle I am toggeling between:Here are the two styles

 

 

 

 

 

    <Window.Resources> 
        <!--ms-help://telerik.windows.controls/telerik.windows.controls.gridview/gridview-templating-column-headers.html--> 
        <Style x:Key="GridViewHeaderCellFilterStyle" TargetType="{x:Type telerik:GridViewHeaderCell}">  
            <Setter Property="Template">  
                <Setter.Value> 
                    <ControlTemplate TargetType="{x:Type telerik:GridViewHeaderCell}">  
                        <Border BorderBrush="#FFB3B3B3" BorderThickness="0,0,1,0">  
                            <Grid > 
                                <Grid.ColumnDefinitions> 
                                    <ColumnDefinition Width="0.713*"/>  
                                    <ColumnDefinition Width="0.287*"/>  
                                </Grid.ColumnDefinitions> 
                                <Border x:Name="GridViewHeaderCell" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2"/>  
                                <Border x:Name="GridViewHeaderCell_Over" Opacity="0" BorderBrush="#FFFFFDE6" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2">  
                                    <Border.Background> 
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                            <GradientStop Color="#FFFFE391" Offset="1"/>  
                                            <GradientStop Color="#FFFFFDEB" Offset="0"/>  
                                            <GradientStop Color="#FFFFD563" Offset="0.43"/>  
                                            <GradientStop Color="#FFFFEDB3" Offset="0.42"/>  
                                        </LinearGradientBrush> 
                                    </Border.Background> 
                                </Border> 
                                <Border x:Name="GridViewHeaderCell_Selected" Opacity="0" BorderBrush="#FFFFFDE6" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2">  
                                    <Border.Background> 
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                            <GradientStop Color="#FFFCE79F" Offset="1"/>  
                                            <GradientStop Color="#FFFDD3A8" Offset="0.07"/>  
                                            <GradientStop Color="#FFF9932E" Offset="0.43"/>  
                                            <GradientStop Color="#FFFAAD5F" Offset="0.42"/>  
                                            <GradientStop Color="#FFB0987C" Offset="0"/>  
                                        </LinearGradientBrush> 
                                    </Border.Background> 
                                </Border> 
                                <Grid x:Name="PART_HeaderCellGrid" Grid.ColumnSpan="2" > 
                                    <Grid.RowDefinitions> 
                                        <RowDefinition Height="Auto" /> 
                                        <RowDefinition Height="*" /> 
                                    </Grid.RowDefinitions> 
                                    <Grid.ColumnDefinitions> 
                                        <ColumnDefinition Width="*"/>  
                                        <ColumnDefinition Width="Auto"/>  
                                    </Grid.ColumnDefinitions> 
                                    <Grid Grid.Row="1" Grid.ColumnSpan="2" Height="20">  
                                        <Grid.ColumnDefinitions> 
                                            <ColumnDefinition Width="Auto"/>  
                                            <ColumnDefinition Width="*"/>  
                                        </Grid.ColumnDefinitions> 
                                        <telerik:RadComboBox Grid.Column="0" FontWeight="Normal">  
                                            <telerik:RadComboBoxItem Content="=" IsSelected="True"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&lt;"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&lt;="></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&gt;"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&gt;="></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="in"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="like"></telerik:RadComboBoxItem> 
                                        </telerik:RadComboBox> 
                                        <telerik:RadComboBox Grid.Column="1" HorizontalAlignment="Stretch" IsEditable="True" IsReadOnly="False" FontWeight="Normal"></telerik:RadComboBox> 
                                    </Grid> 
                                    <telerik:AlignmentContentPresenter Margin="5,0,3,0" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" TextAlignment="{TemplateBinding TextAlignment}" TextDecorations="{TemplateBinding TextDecorations}" TextWrapping="{TemplateBinding TextWrapping}"/>  
                                    <Grid HorizontalAlignment="Right" Background="Transparent" Grid.Column="1">  
                                        <Grid.ColumnDefinitions> 
                                            <ColumnDefinition Width="Auto"/>  
                                            <ColumnDefinition Width="Auto"/>  
                                        </Grid.ColumnDefinitions> 
                                        <Path x:Name="PART_SortIndicator" Stretch="Fill" HorizontalAlignment="Left" Margin="1,0,4,0" VerticalAlignment="Center" Width="5" Height="3" RenderTransformOrigin="0.5,0.5" Data="M0,0L1,0 2,0 3,0 4,0 5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0z">  
                                            <Path.Fill> 
                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                                    <GradientStop Color="Black" Offset="0"/>  
                                                    <GradientStop Color="Black" Offset="1"/>  
                                                </LinearGradientBrush> 
                                            </Path.Fill> 
                                            <Path.RenderTransform> 
                                                <TransformGroup> 
                                                    <ScaleTransform ScaleX="1" ScaleY="-1"/>  
                                                    <SkewTransform AngleX="0" AngleY="0"/>  
                                                    <RotateTransform Angle="0"/>  
                                                    <TranslateTransform X="0" Y="0"/>  
                                                </TransformGroup> 
                                            </Path.RenderTransform> 
                                        </Path> 
                                        <!--  
                                        <telerik:FilteringDropDown x:Name="PART_DistinctFilterControl" Margin="0,0,8,0" IsTabStop="False" Visibility="{TemplateBinding FilteringUIVisibility}" Grid.Column="1">  
                                            <telerik:StyleManager.Theme> 
                                                <telerik:Office_BlackTheme/> 
                                            </telerik:StyleManager.Theme> 
                                        </telerik:FilteringDropDown> 
                                        --> 
                                    </Grid> 
                                </Grid> 
                                <Thumb x:Name="PART_LeftHeaderGripper" HorizontalAlignment="Left">  
                                    <Thumb.Style> 
                                        <Style TargetType="{x:Type Thumb}">  
                                            <Setter Property="Width" Value="8"/>  
                                            <Setter Property="Background" Value="Transparent"/>  
                                            <Setter Property="Cursor" Value="SizeWE"/>  
                                            <Setter Property="Template">  
                                                <Setter.Value> 
                                                    <ControlTemplate TargetType="{x:Type Thumb}">  
                                                        <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"/>  
                                                    </ControlTemplate> 
                                                </Setter.Value> 
                                            </Setter> 
                                        </Style> 
                                    </Thumb.Style> 
                                </Thumb> 
                                <Thumb x:Name="PART_RightHeaderGripper" HorizontalAlignment="Right" Grid.Column="1">  
                                    <Thumb.Style> 
                                        <Style TargetType="{x:Type Thumb}">  
                                            <Setter Property="Width" Value="8"/>  
                                            <Setter Property="Background" Value="Transparent"/>  
                                            <Setter Property="Cursor" Value="SizeWE"/>  
                                            <Setter Property="Template">  
                                                <Setter.Value> 
                                                    <ControlTemplate TargetType="{x:Type Thumb}">  
                                                        <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"/>  
                                                    </ControlTemplate> 
                                                </Setter.Value> 
                                            </Setter> 
                                        </Style> 
                                    </Thumb.Style> 
                                </Thumb> 
                            </Grid> 
                        </Border> 
                        <ControlTemplate.Triggers> 
                            <MultiTrigger> 
                                <MultiTrigger.EnterActions> 
                                    <BeginStoryboard> 
                                        <Storyboard> 
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GridViewHeaderCell_Over" Storyboard.TargetProperty="Opacity">  
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1200000" Value="1"/>  
                                            </DoubleAnimationUsingKeyFrames> 
                                        </Storyboard> 
                                    </BeginStoryboard> 
                                </MultiTrigger.EnterActions> 
                                <MultiTrigger.ExitActions> 
                                    <BeginStoryboard> 
                                        <Storyboard> 
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GridViewHeaderCell_Over" Storyboard.TargetProperty="Opacity">  
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1200000" Value="0"/>  
                                            </DoubleAnimationUsingKeyFrames> 
                                        </Storyboard> 
                                    </BeginStoryboard> 
                                </MultiTrigger.ExitActions> 
                                <MultiTrigger.Conditions> 
                                    <Condition Property="IsMouseOver" Value="True"/>  
                                    <Condition Property="SortingState" Value="None"/>  
                                </MultiTrigger.Conditions> 
                            </MultiTrigger> 
                            <Trigger Property="SortingState" Value="Ascending">  
                                <Setter Property="Visibility" TargetName="PART_SortIndicator" Value="Visible"/>  
                                <Setter Property="LayoutTransform" TargetName="PART_SortIndicator">  
                                    <Setter.Value> 
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>  
                                    </Setter.Value> 
                                </Setter> 
                                <Setter Property="Opacity" TargetName="GridViewHeaderCell_Selected" Value="1"/>  
                            </Trigger> 
                            <Trigger Property="SortingState" Value="Descending">  
                                <Setter Property="Visibility" TargetName="PART_SortIndicator" Value="Visible"/>  
                                <Setter Property="LayoutTransform" TargetName="PART_SortIndicator">  
                                    <Setter.Value> 
                                        <ScaleTransform ScaleX="1" ScaleY="-1"/>  
                                    </Setter.Value> 
                                </Setter> 
                                <Setter Property="Opacity" TargetName="GridViewHeaderCell_Selected" Value="1"/>  
                            </Trigger> 
                            <Trigger Property="SortingState" Value="None">  
                                <Setter Property="Visibility" TargetName="PART_SortIndicator" Value="Hidden"/>  
                            </Trigger> 
                        </ControlTemplate.Triggers> 
                    </ControlTemplate> 
                </Setter.Value> 
            </Setter> 
            <Setter Property="Background">  
                <Setter.Value> 
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                        <GradientStop Color="#FFF8F8F9" Offset="0"/>  
                        <GradientStop Color="#FFDBDEE1" Offset="1"/>  
                        <GradientStop Color="#FFDFE2E5" Offset="0.4"/>  
                        <GradientStop Color="#FFC7CBD1" Offset="0.4"/>  
                    </LinearGradientBrush> 
                </Setter.Value> 
            </Setter> 
            <Setter Property="BorderBrush" Value="#FFEEEEEE"/>  
            <Setter Property="BorderThickness" Value="0,0,1,1"/>  
            <Setter Property="Foreground" Value="Black"/>  
            <Setter Property="FontWeight" Value="Bold"/>  
            <Setter Property="TextAlignment" Value="Left"/>  
            <Setter Property="DropMarkPen">  
                <Setter.Value> 
                    <Pen Thickness="60">  
                        <Pen.Brush> 
                            <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">  
                                <GradientStop Color="#00F4F5F6" Offset="0"/>  
                                <GradientStop Color="#B2808080" Offset="0.5"/>  
                                <GradientStop Color="#00F4F5F6" Offset="1"/>  
                            </LinearGradientBrush> 
                        </Pen.Brush> 
                    </Pen> 
                </Setter.Value> 
            </Setter> 
            <Setter Property="SnapsToDevicePixels" Value="True"/>  
        </Style> 
        <Style x:Key="GridViewHeaderCellFilterComplexStyle" TargetType="{x:Type telerik:GridViewHeaderCell}">  
            <Setter Property="Template">  
                <Setter.Value> 
                    <ControlTemplate TargetType="{x:Type telerik:GridViewHeaderCell}">  
                        <Border BorderBrush="#FFB3B3B3" BorderThickness="0,0,1,0">  
                            <Grid > 
                                <Grid.ColumnDefinitions> 
                                    <ColumnDefinition Width="0.713*"/>  
                                    <ColumnDefinition Width="0.287*"/>  
                                </Grid.ColumnDefinitions> 
                                <Border x:Name="GridViewHeaderCell" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2"/>  
                                <Border x:Name="GridViewHeaderCell_Over" Opacity="0" BorderBrush="#FFFFFDE6" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2">  
                                    <Border.Background> 
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                            <GradientStop Color="#FFFFE391" Offset="1"/>  
                                            <GradientStop Color="#FFFFFDEB" Offset="0"/>  
                                            <GradientStop Color="#FFFFD563" Offset="0.43"/>  
                                            <GradientStop Color="#FFFFEDB3" Offset="0.42"/>  
                                        </LinearGradientBrush> 
                                    </Border.Background> 
                                </Border> 
                                <Border x:Name="GridViewHeaderCell_Selected" Opacity="0" BorderBrush="#FFFFFDE6" BorderThickness="{TemplateBinding BorderThickness}" Grid.ColumnSpan="2">  
                                    <Border.Background> 
                                        <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                            <GradientStop Color="#FFFCE79F" Offset="1"/>  
                                            <GradientStop Color="#FFFDD3A8" Offset="0.07"/>  
                                            <GradientStop Color="#FFF9932E" Offset="0.43"/>  
                                            <GradientStop Color="#FFFAAD5F" Offset="0.42"/>  
                                            <GradientStop Color="#FFB0987C" Offset="0"/>  
                                        </LinearGradientBrush> 
                                    </Border.Background> 
                                </Border> 
                                <Grid x:Name="PART_HeaderCellGrid" Grid.ColumnSpan="2" > 
                                    <Grid.RowDefinitions> 
                                        <RowDefinition Height="Auto" /> 
                                        <RowDefinition Height="*" /> 
                                        <RowDefinition Height="*" /> 
                                        <RowDefinition Height="*" /> 
                                    </Grid.RowDefinitions> 
                                    <Grid.ColumnDefinitions> 
                                        <ColumnDefinition Width="*"/>  
                                        <ColumnDefinition Width="Auto"/>  
                                    </Grid.ColumnDefinitions> 
                                       <CheckBox Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center"></CheckBox>    
                                    <Grid Grid.Row="2" Grid.ColumnSpan="2" Height="20">  
                                        <Grid.ColumnDefinitions> 
                                            <ColumnDefinition Width="Auto"/>  
                                            <ColumnDefinition Width="*"/>  
                                        </Grid.ColumnDefinitions> 
       
                                        <telerik:RadComboBox Grid.Column="0" > 
                                            <telerik:RadComboBoxItem Content="=" IsSelected="True"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&lt;"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&lt;="></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&gt;"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&gt;="></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="in"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="like"></telerik:RadComboBoxItem> 
                                        </telerik:RadComboBox> 
                                        <telerik:RadComboBox Grid.Column="1" HorizontalAlignment="Stretch" IsEditable="True" IsReadOnly="False" FontWeight="Normal"></telerik:RadComboBox> 
                                    </Grid> 
                                    <Grid Grid.Row="3" Grid.ColumnSpan="2" Height="20">  
                                        <Grid.ColumnDefinitions> 
                                            <ColumnDefinition Width="Auto"/>  
                                            <ColumnDefinition Width="*"/>  
                                        </Grid.ColumnDefinitions> 
                                        <telerik:RadComboBox Grid.Column="0" > 
                                            <telerik:RadComboBoxItem Content="=" IsSelected="True"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&lt;"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&lt;="></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&gt;"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="&gt;="></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="in"></telerik:RadComboBoxItem> 
                                            <telerik:RadComboBoxItem Content="like"></telerik:RadComboBoxItem> 
                                        </telerik:RadComboBox> 
                                        <telerik:RadComboBox Grid.Column="1" HorizontalAlignment="Stretch" IsEditable="True" IsReadOnly="False" FontWeight="Normal"></telerik:RadComboBox> 
                                    </Grid> 
 
                                        <telerik:AlignmentContentPresenter Margin="5,0,3,0" VerticalAlignment="Center" Grid.Row="0" Grid.Column="0" Content="{TemplateBinding Content}" ContentStringFormat="{TemplateBinding ContentStringFormat}" ContentTemplate="{TemplateBinding ContentTemplate}" TextAlignment="{TemplateBinding TextAlignment}" TextDecorations="{TemplateBinding TextDecorations}" TextWrapping="{TemplateBinding TextWrapping}"/>  
                                    <Grid HorizontalAlignment="Right" Background="Transparent" Grid.Column="1">  
                                        <Grid.ColumnDefinitions> 
                                            <ColumnDefinition Width="Auto"/>  
                                            <ColumnDefinition Width="Auto"/>  
                                        </Grid.ColumnDefinitions> 
                                        <Path x:Name="PART_SortIndicator" Stretch="Fill" HorizontalAlignment="Left" Margin="1,0,4,0" VerticalAlignment="Center" Width="5" Height="3" RenderTransformOrigin="0.5,0.5" Data="M0,0L1,0 2,0 3,0 4,0 5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0z">  
                                            <Path.Fill> 
                                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                                                    <GradientStop Color="Black" Offset="0"/>  
                                                    <GradientStop Color="Black" Offset="1"/>  
                                                </LinearGradientBrush> 
                                            </Path.Fill> 
                                            <Path.RenderTransform> 
                                                <TransformGroup> 
                                                    <ScaleTransform ScaleX="1" ScaleY="-1"/>  
                                                    <SkewTransform AngleX="0" AngleY="0"/>  
                                                    <RotateTransform Angle="0"/>  
                                                    <TranslateTransform X="0" Y="0"/>  
                                                </TransformGroup> 
                                            </Path.RenderTransform> 
                                        </Path> 
                                        <!--  
                                        <telerik:FilteringDropDown x:Name="PART_DistinctFilterControl" Margin="0,0,8,0" IsTabStop="False" Visibility="{TemplateBinding FilteringUIVisibility}" Grid.Column="1">  
                                            <telerik:StyleManager.Theme> 
                                                <telerik:Office_BlackTheme/> 
                                            </telerik:StyleManager.Theme> 
                                        </telerik:FilteringDropDown> 
                                        --> 
                                    </Grid> 
                                </Grid> 
                                <Thumb x:Name="PART_LeftHeaderGripper" HorizontalAlignment="Left">  
                                    <Thumb.Style> 
                                        <Style TargetType="{x:Type Thumb}">  
                                            <Setter Property="Width" Value="8"/>  
                                            <Setter Property="Background" Value="Transparent"/>  
                                            <Setter Property="Cursor" Value="SizeWE"/>  
                                            <Setter Property="Template">  
                                                <Setter.Value> 
                                                    <ControlTemplate TargetType="{x:Type Thumb}">  
                                                        <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"/>  
                                                    </ControlTemplate> 
                                                </Setter.Value> 
                                            </Setter> 
                                        </Style> 
                                    </Thumb.Style> 
                                </Thumb> 
                                <Thumb x:Name="PART_RightHeaderGripper" HorizontalAlignment="Right" Grid.Column="1">  
                                    <Thumb.Style> 
                                        <Style TargetType="{x:Type Thumb}">  
                                            <Setter Property="Width" Value="8"/>  
                                            <Setter Property="Background" Value="Transparent"/>  
                                            <Setter Property="Cursor" Value="SizeWE"/>  
                                            <Setter Property="Template">  
                                                <Setter.Value> 
                                                    <ControlTemplate TargetType="{x:Type Thumb}">  
                                                        <Border Background="{TemplateBinding Background}" Padding="{TemplateBinding Padding}"/>  
                                                    </ControlTemplate> 
                                                </Setter.Value> 
                                            </Setter> 
                                        </Style> 
                                    </Thumb.Style> 
                                </Thumb> 
                            </Grid> 
                        </Border> 
                        <ControlTemplate.Triggers> 
                            <MultiTrigger> 
                                <MultiTrigger.EnterActions> 
                                    <BeginStoryboard> 
                                        <Storyboard> 
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GridViewHeaderCell_Over" Storyboard.TargetProperty="Opacity">  
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1200000" Value="1"/>  
                                            </DoubleAnimationUsingKeyFrames> 
                                        </Storyboard> 
                                    </BeginStoryboard> 
                                </MultiTrigger.EnterActions> 
                                <MultiTrigger.ExitActions> 
                                    <BeginStoryboard> 
                                        <Storyboard> 
                                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="GridViewHeaderCell_Over" Storyboard.TargetProperty="Opacity">  
                                                <SplineDoubleKeyFrame KeyTime="00:00:00.1200000" Value="0"/>  
                                            </DoubleAnimationUsingKeyFrames> 
                                        </Storyboard> 
                                    </BeginStoryboard> 
                                </MultiTrigger.ExitActions> 
                                <MultiTrigger.Conditions> 
                                    <Condition Property="IsMouseOver" Value="True"/>  
                                    <Condition Property="SortingState" Value="None"/>  
                                </MultiTrigger.Conditions> 
                            </MultiTrigger> 
                            <Trigger Property="SortingState" Value="Ascending">  
                                <Setter Property="Visibility" TargetName="PART_SortIndicator" Value="Visible"/>  
                                <Setter Property="LayoutTransform" TargetName="PART_SortIndicator">  
                                    <Setter.Value> 
                                        <ScaleTransform ScaleX="1" ScaleY="1"/>  
                                    </Setter.Value> 
                                </Setter> 
                                <Setter Property="Opacity" TargetName="GridViewHeaderCell_Selected" Value="1"/>  
                            </Trigger> 
                            <Trigger Property="SortingState" Value="Descending">  
                                <Setter Property="Visibility" TargetName="PART_SortIndicator" Value="Visible"/>  
                                <Setter Property="LayoutTransform" TargetName="PART_SortIndicator">  
                                    <Setter.Value> 
                                        <ScaleTransform ScaleX="1" ScaleY="-1"/>  
                                    </Setter.Value> 
                                </Setter> 
                                <Setter Property="Opacity" TargetName="GridViewHeaderCell_Selected" Value="1"/>  
                            </Trigger> 
                            <Trigger Property="SortingState" Value="None">  
                                <Setter Property="Visibility" TargetName="PART_SortIndicator" Value="Hidden"/>  
                            </Trigger> 
                        </ControlTemplate.Triggers> 
                    </ControlTemplate> 
                </Setter.Value> 
            </Setter> 
            <Setter Property="Background">  
                <Setter.Value> 
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">  
                        <GradientStop Color="#FFF8F8F9" Offset="0"/>  
                        <GradientStop Color="#FFDBDEE1" Offset="1"/>  
                        <GradientStop Color="#FFDFE2E5" Offset="0.4"/>  
                        <GradientStop Color="#FFC7CBD1" Offset="0.4"/>  
                    </LinearGradientBrush> 
                </Setter.Value> 
            </Setter> 
            <Setter Property="BorderBrush" Value="#FFEEEEEE"/>  
            <Setter Property="BorderThickness" Value="0,0,1,1"/>  
            <Setter Property="Foreground" Value="Black"/>  
            <Setter Property="FontWeight" Value="Bold"/>  
            <Setter Property="TextAlignment" Value="Left"/>  
            <Setter Property="DropMarkPen">  
                <Setter.Value> 
                    <Pen Thickness="60">  
                        <Pen.Brush> 
                            <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">  
                                <GradientStop Color="#00F4F5F6" Offset="0"/>  
                                <GradientStop Color="#B2808080" Offset="0.5"/>  
                                <GradientStop Color="#00F4F5F6" Offset="1"/>  
                            </LinearGradientBrush> 
                        </Pen.Brush> 
                    </Pen> 
                </Setter.Value> 
            </Setter> 
            <Setter Property="SnapsToDevicePixels" Value="True"/>  
        </Style> 
    </Window.Resources> 
0
Stefan Dobrev
Telerik team
answered on 26 Feb 2010, 10:36 AM
Hi Peter,

Using your sample code I was able to reproduce this. Thanks for reporting this problem. A fix for this will be available in the next latest internal build.

Thank you again for pointing out this issue. I have update your Telerik points.

All the best,
Stefan Dobrev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Peter Meinl
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Peter Meinl
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or