FrozenColumn style

2 posts, 0 answers
  1. Dirk Liebich
    Dirk Liebich avatar
    17 posts
    Member since:
    Jun 2010

    Posted 22 Aug 2011 Link to this post

    Dear everybody,

    is it possible to re-style the border of a column once it is frozen? I'd like to get rid of the shadow then.

    Can somebody explain how to do this?

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 22 Aug 2011 Link to this post

    Hi Dirk Liebich,

     You may achieve the desired result by predefing the template of FrozenColumnSplitter.
    The snippet below demonstrates how this can be done:

            <ControlTemplate x:Key="FrozenColumnsSplitterTemplate" TargetType="telerik:FrozenColumnsSplitter">
                <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,0,0,0" Width="4">
                    <Border BorderThickness="0,0,2,0" Background="{TemplateBinding Background}" Margin="0"/>
            <SolidColorBrush x:Key="GridView_FrozenColumnBackground" Color="LightBlue"/>
            <SolidColorBrush x:Key="GridView_FrozenColumnBorder" Color="White"/>
            <Style  TargetType="telerik:FrozenColumnsSplitter">
                <Setter Property="Template" Value="{StaticResource FrozenColumnsSplitterTemplate}"/>
                <Setter Property="IsTabStop" Value="False"/>
                <Setter Property="Background" Value="{StaticResource GridView_FrozenColumnBackground}"/>
                <Setter Property="BorderBrush" Value="{StaticResource GridView_FrozenColumnBorder}"/>
        <Grid x:Name="LayoutRoot" Background="White" DataContext="{Binding Source={StaticResource SampleDataSource}}">
            <telerik:RadGridView ItemsSource="{Binding Collection}"/>

    I hope that this is helpful. Please let me know in case you have any further questions on this topic.

    Best wishes,
    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 >>

Back to Top