I have a table that has several foreign keys, instead of filtering by the autogenerated dropdown boxes that dynamic data creates I'd like to filter with a custom "Contains" filter or "StartsWith" filter. I've tried using the FilterUIHint attribute but I
get an error when I try to use the filter. How can I make custom filters work with foreign keys?
jvdub22
Member
2 Points
13 Posts
Custom filter instead of autogenerated filter for foreign key
Dec 06, 2012 11:59 PM|LINK
I have a table that has several foreign keys, instead of filtering by the autogenerated dropdown boxes that dynamic data creates I'd like to filter with a custom "Contains" filter or "StartsWith" filter. I've tried using the FilterUIHint attribute but I get an error when I try to use the filter. How can I make custom filters work with foreign keys?
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: Custom filter instead of autogenerated filter for foreign key
Dec 08, 2012 01:53 AM|LINK
Hi,
What have you written and what error have you got?
sjnaughton
All-Star
27387 Points
5483 Posts
MVP
Re: Custom filter instead of autogenerated filter for foreign key
Dec 08, 2012 12:20 PM|LINK
Hi jvdub22, try my custom filters package from NuGet here Dynamic Data 15 Custom Filters that has both
Always seeking an elegant solution.