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

adding new Filter via code

3 Answers 66 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Ralf
Top achievements
Rank 1
Ralf asked on 08 Sep 2011, 02:34 PM
Hi,

i have a RadDataFilter defined and try to add a new FilterDescriptor.
If the RadView is visible, i got to visual entries for that one filter.
But if i hide the DataFilter before adding, all is ok ?

 ClearFilter();
_Filter.Visibility = Visibility.Collapsed;
var cityFilter = new FilterDescriptor("City"FilterOperator.IsEqualTo, "Berlin :-)", false);
_Filter.FilterDescriptors.Add(cityFilter);
_Filter.Visibility = Visibility.Visible;



What  am i doing wrong?
tanks
ralf








3 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 08 Sep 2011, 02:45 PM
Hello Ralf Bellmann,

Unfortunately, we could not quite understand what the problem is.

What is RadView? Do you mean RadGridView? What is RadDataFilter bound to? Is it in bound or unbound mode? In case it is bound to RadGridView, have you hidden RadGridView's default filtering as described in docs?

Since we have so many different questions that we cannot answer from the short code snippet you have provided, it will be better if you simply open a new support ticket and send us a very small dummy sample project that demonstrates this and tell us exactly what are you trying to achieve and what the exact problem is.

This will be the fastest way to resolve your issue.

Thanks in advance.

Best wishes,
Ross
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Ralf
Top achievements
Rank 1
answered on 08 Sep 2011, 02:52 PM
Hi Ross,

sorry i was to quick ..

RadView is wrong, this is the RadDataFilter. The Filter is in unbound mode.

Could i clarify my question ?

thanks ralf

Ok - opened a ticket 462416.
0
Rossen Hristov
Telerik team
answered on 12 Sep 2011, 09:53 AM
Hello Ralf,

In case you think that you have discovered a bug in one of our controls, please prepare a simple project that demonstrates this bug and we will debug it immediately. Also, tell us the exact steps that we need to follow in order to reproduce the bug and what are the results that you would expect. 

Thanks in advance.

Regards,
Ross
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
DataFilter
Asked by
Ralf
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Ralf
Top achievements
Rank 1
Share this question
or