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

GridViewBoundColumnBase.CanFilter() bug of the 2012.1 release?

6 Answers 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 21 Mar 2012, 09:11 AM

Hi,

It seems a bug in the GridViewBoundColumnBase.CanFilter() of the 2012.1 release.

I'm binding my grid to a collection of ExpandoObjects, and I found that when I set grid.IsFilteringAllowed to true, the FilteringDropDown controls shows up on column headers, but they didn't go hidden when I set grid.IsFilteringAllowed to false.

By looking at the disassembled code, I found that GridViewBoundColumnBase.CanFilter() has been changed to this:

        public override bool CanFilter()
         {
             return (base.CanFilter() || (this.IsBoundToDynamicType() && (this.EffectiveFilteringType != null)));
         }

In my case base.CanFilter() is false and this.IsBoundToDynamicType() && (this.EffectiveFilteringType != null)) is always true, which means there's no way for me to simply toggle grid.IsFilteringAllowed to show/hide the filter control.

Jason

6 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 21 Mar 2012, 09:18 AM
Hi,

We already fixed this bug. Can you please try with our "Latest Internal Build" version and see how it goes.

Let us know if there are problems.

All the best,
Ross
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jason
Top achievements
Rank 1
answered on 21 Mar 2012, 09:33 AM
Thanks for the quick response.
Would you mind point me to the link? The latest one I found is http://www.telerik.com/downloads/productfiles/bcdcc/RadControlsForWpfSetup_2012_1_0215.exe


Jason
0
Hristo
Telerik team
answered on 21 Mar 2012, 10:06 AM
Hi,

Look here for the file RadControls_for_WPF_2012_1_0309_TRIAL_hotfix.zip.

Kind regards,
Hristo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jason
Top achievements
Rank 1
answered on 21 Mar 2012, 12:19 PM
Thanks, Hristo, the fix worked.
May I know when will this be officially released?
0
Rossen Hristov
Telerik team
answered on 21 Mar 2012, 01:59 PM
Hi,

Hopefully, we will release 2012 Q1 SP1 until the end of the week.

Greetings,
Ross
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Jason
Top achievements
Rank 1
answered on 21 Mar 2012, 02:19 PM
Nice, looking forward to that.

Jason
Tags
GridView
Asked by
Jason
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Jason
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or