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

Setting ShowDistinctFilters in AutoGeneratingColumn event is ignored

1 Answer 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jon Barron
Top achievements
Rank 1
Jon Barron asked on 23 Jul 2010, 04:49 PM

Hi,

I've got a grid that's generating columns automatically, but I don't want it to show the filtering control, so I wired up to the AutoGeneratingCoumn event so that I could set the ShowDistinctFilters property of the column to false. However, when run, the column filters control still appears.

In my XAML:

<

 

 

telerik:RadGridView x:Name="RadGridView1" AutoExpandGroups="True" ShowGroupPanel="False" Grid.Row="1" AutoGeneratingColumn="RadGridView1_AutoGeneratingColumn" />

 

 

 

In my codebehind:
 

 

 

private void RadGridView1_AutoGeneratingColumn(object sender, Telerik.Windows.Controls.GridViewAutoGeneratingColumnEventArgs e)

{

   e.Column.ShowDistinctFilters =

 

false;

 

 

}

 

 


Note that if I set some other property such as the header, this works as expected. Also, if I statically define columns and set the ShowDistinctFilters property to false in the statically defined column it also works as expected.




1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 27 Jul 2010, 09:23 AM
Hi Jon Barron,

Can you please upgrade to our Latest Internal Build version from the 23rd of July. I have prepared a sample project with this version and it seems to be working fine. I am attaching the sample project for reference.

Let us know if problems still exists after you upgrade.

Best wishes,
Ross
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
Jon Barron
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or