Hello,
It seems there is an issue with ColumnWidth property being speficied as a Style property for the RadGridView. Here is my code
The ShowGroupPanel="false" applies to the grid but I don't see the columns occupying all of the Grid's Width. Is this an existing bug of RadGridView? Any help is appreciated.
Attached is the image of my output.
Note: It works when I specify this property explicitly for each of the RadGridView but not as a part of Style (either as a local resource/Window Resource/ ResourceDictionary)
It seems there is an issue with ColumnWidth property being speficied as a Style property for the RadGridView. Here is my code
<
Window
x:Class
=
"GridTest.MainWindow"
Title
=
"MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
>
<
Window.Resources
>
<
Style
TargetType
=
"{x:Type telerik:RadGridView}"
>
<
Setter
Property
=
"ShowGroupPanel"
Value
=
"False"
/>
<
Setter
Property
=
"ColumnWidth"
Value
=
"*"
></
Setter
>
</
Style
>
</
Window.Resources
>
<
Grid
Margin
=
"40"
>
<
telerik:RadGridView
Name
=
"gridViewCheckBox1"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Qtr1"
DataMemberBinding
=
"{Binding FinancialQuarter}"
/>
<
telerik:GridViewDataColumn
Header
=
"Qtr2"
DataMemberBinding
=
"{Binding FinancialQuarter}"
/>
<
telerik:GridViewDataColumn
Header
=
"Qtr3"
DataMemberBinding
=
"{Binding FinancialQuarter}"
/>
<
telerik:GridViewDataColumn
Header
=
"Qtr4"
DataMemberBinding
=
"{Binding FinancialQuarter}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
Window
>
The ShowGroupPanel="false" applies to the grid but I don't see the columns occupying all of the Grid's Width. Is this an existing bug of RadGridView? Any help is appreciated.
Attached is the image of my output.
Note: It works when I specify this property explicitly for each of the RadGridView but not as a part of Style (either as a local resource/Window Resource/ ResourceDictionary)