Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to filter a LookUpEdit by multiple columns

$
0
0

The easiest way to search by multiple columns in LookUpEdit is to use the SearchLookUpEditStyleSettings class as demonstrated in the How to: Create a SearchLookUpEdit and Bind it to Data article.

If you would like to filter by multiple columns when a user types directly in the edit box instead, create a LookUpEditStrategy descendant and override the UpdateDisplayFilter method where the filter criteria is set.

Question Comments

Added By: John Kerin at: 1/14/2015 11:53:57 AM    

Hi, I have downloaded the example for 14.2.3 and it fails to run as it throws an exception:
Unable to cast object of type 'EditorsDataProxy2' to type 'EditorsDataProxy1'.

However, if I run it using earlier versions it runs with no problem.  

Can you let me know a workaround, as I have just upgraded our project from 14.1.4 to 14.2.3 and this use case is blocking me.

Regards,
JK

Added By: Elliot (DevExpress Support) at: 1/15/2015 2:54:33 AM    Hello,


To process your recent post more efficiently, this issue will be processed in the Example to filter a LookUpEdit by multiple columns not working in 14.2.3 ticket. 


Thanks,
Elliot

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>