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

[Solved] set ShowFieldFilters into style for GridViewDataColumn

1 Answer 108 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Avi
Top achievements
Rank 1
Avi asked on 29 Jun 2011, 02:48 PM
Hello,

I tried to write something like this :

<UserControl.Resources>
        <Style TargetType="telerik:GridViewDataColumn">
            <Setter Property="ShowFieldFilters" Value="False" />
        </Style>        
</UserControl.Resources>

to influence the property "ShowFieldFilters" of columns. but  without success. Is there an alternative ?

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 29 Jun 2011, 05:05 PM
Hello Avi,

You create a style that targets at GridViewDataColumn. However, this is not allowed as GridViewColumns are not  visual objects.
Unfortunatel,y you can only apply styles to visual objects. 

As an alternative you may modify the control template of the filtering control in Blend. You may as well just set the ShowFieldFilters="False" property of the GridViewDataColumn.

Regards,
Didie
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
Avi
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or