WPF Telerik RadGridView Disappeared when Global Style Applied

2 posts, 0 answers
  1. Karuppasamy
    Karuppasamy avatar
    4 posts
    Member since:
    Apr 2012

    Posted 16 Apr Link to this post

    WPF Telerik RadGridView disappeared when i applied global style.

                        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:fw="clr-namespace:SSMS.Framework;assembly=SSMS.Framework">
     
        <Style TargetType="telerik:RadGridView">
            <Setter Property="ShowGroupPanel" Value="False" />
            <Setter Property="AutoGenerateColumns" Value="False" />
            <Setter Property="RowIndicatorVisibility" Value="Collapsed" />
            <Setter Property="CanUserFreezeColumns" Value="False" />
            <Setter Property="IsReadOnly" Value="True" />
            <Setter Property="BorderThickness" Value="1,1,1,0" />
        </Style>
     
        <Style x:Key="BoldStyle" TargetType="telerik:GridViewRow" BasedOn="{StaticResource GridViewRowStyle}">
            <Setter Property="FontWeight" Value="Bold" />
        </Style>
     
    ...........................etc

    If i remove the below part from GridViewStyle.xaml, the grid appearing fine, but i want to configure those settings globally.

    <Style TargetType="telerik:RadGridView">
                <Setter Property="ShowGroupPanel" Value="False" />
                <Setter Property="AutoGenerateColumns" Value="False" />
                <Setter Property="RowIndicatorVisibility" Value="Collapsed" />
                <Setter Property="CanUserFreezeColumns" Value="False" />
                <Setter Property="IsReadOnly" Value="True" />
                <Setter Property="BorderThickness" Value="1,1,1,0" />
    </Style>

    I am using Telerik WPF 2016.1.112.45
    I am sure, before it was worked on the version 2015.3.1104.45.
    Anything I missed?
  2. Karuppasamy
    Karuppasamy avatar
    4 posts
    Member since:
    Apr 2012

    Posted 16 Apr in reply to Karuppasamy Link to this post

    Solution Found!

    I removed the reference from Binaries.NoXaml folder

    C:\Program Files (x86)\Telerik\UI for WPF Q1 2016\Binaries.NoXaml\WPF45\Telerik.Windows.Controls.GridView.dll

    and added the reference from Binaries folder. Now everything working fine:)

    C:\Program Files (x86)\Telerik\UI for WPF Q1 2016\Binaries\WPF45\Telerik.Windows.Controls.GridView.dll

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top