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

[Solved] Set Filter option Default to Starts with

3 Answers 219 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chad
Top achievements
Rank 1
Chad asked on 23 Jun 2011, 06:47 PM
How can we make the first filter option default to "Starts with" instead of "Ends with"?

thanks.

3 Answers, 1 is accepted

Sort by
0
Chad
Top achievements
Rank 1
answered on 23 Jun 2011, 10:40 PM

.Filterable(filtering => filtering.Filters(filters => filters.Add(o => o.FirstName).StartsWith(

 

"")))

this seems to work.

 

0
Örjan
Top achievements
Rank 1
answered on 25 Aug 2011, 03:38 PM
I would also like to have something other that "Starts with" as default. It could be "Starts with" or "Contains".
The solutions that you suggest to you self makes your column show that is is filtered. I don't like that.I would like all of my columns to have "Contains" selected when the user is about to create a filter, but I don't want the column to look like there is a filter applied.
Tags
Grid
Asked by
Chad
Top achievements
Rank 1
Answers by
Chad
Top achievements
Rank 1
Örjan
Top achievements
Rank 1
Share this question
or