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

FieldFilter bug in Q2 2011?

2 Answers 37 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Bob asked on 18 Jul 2011, 05:13 PM

Hello, we just updated our DLL's to Q2 2011 (CLR 4.0), and we noticed that the field filter drop lists are not allowing independent values.  For example, if you select "Contains" for Filter1, then Filter2 also becomes "Contains".  Likewise, if you select "Starts With" for Filter2, and Filter1 already is set to "Contains", Filter1 changes to "Starts With".

We are not overriding any functionality with Prepare, etc.

Thanks for any info.

2 Answers, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 19 Jul 2011, 08:52 AM
Hi Bob,

That is very weird, since we have not touched a thing connected with the filtering. 

I have attached a sample project that does not exhibit this behavior, but maybe I am not testing it the right way.

Could you please tell me what do I need to do on this sample project in order to reproduce the behavior that you are faced with? 

Thanks in advance. I am looking forward to hearing from you.

All the best,
Ross
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
answered on 19 Jul 2011, 10:09 PM
Thanks for the help Ross.  It took me a while to track this down, but apparently one of our developers created a style in a global resources file which targeted all RadComboBox controls, and this style changed occurred at the same time we updated the DLL's.  Since none of our gridview files had changed, I thought the DLL updates had caused the problem, but this is the culprit:

<Style TargetType="{x:Type telerik:RadComboBox}">
            <Setter Property="Height" Value="22"/>
            <Setter Property="Margin" Value="3,3,3,3"/>
            <Setter Property="IsSynchronizedWithCurrentItem" Value="True"/>
</Style>

The property "IsSynchronizedWithCurrentItem" was causing both combo boxes in the filter control to always stay on the same selected value. 
Tags
GridView
Asked by
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Rossen Hristov
Telerik team
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Share this question
or