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

WPF Telerik RadGridView Disappeared when Global Style Applied

1 Answer 128 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Karuppasamy
Top achievements
Rank 1
Karuppasamy asked on 16 Apr 2016, 09:43 AM

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?

1 Answer, 1 is accepted

Sort by
0
Karuppasamy
Top achievements
Rank 1
answered on 16 Apr 2016, 09:55 AM

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

Tags
GridView
Asked by
Karuppasamy
Top achievements
Rank 1
Answers by
Karuppasamy
Top achievements
Rank 1
Share this question
or