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

Custom filtering shows funnel on empty GridView

1 Answer 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Veteran
Iron
Patrick asked on 30 Oct 2013, 03:50 PM
Hello,
when a GridView has no items to display, the funnels for the filters are not displayed, excepted for custom filters.
This poses problem for some cases. In my case, I have a custom filter that descends from FilteringControl. In the Prepare method, I call the inherited Prepare method and it raises an InvalidOperationException exception, with the following text: A column without EffectiveFilteringType cannot supply AvailableFilterOperators.
Patrick

1 Answer, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 04 Nov 2013, 01:54 PM
Hello Patrick,

I suppose that you have not bound the GridView and this is why you are getting the exception. What I can suggest you is to set RadGridView.IsFilteringAllowed property to false in RadGridView declaration and to set it back to true when DataLoaded event is fired. This way the funnels will not appear till the control is filled with items.

I hope this helps.

Regards,
Vera
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Patrick
Top achievements
Rank 2
Veteran
Iron
Answers by
Vera
Telerik team
Share this question
or