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

[Solved] dynamic filtering

0 Answers 61 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.
neal
Top achievements
Rank 1
neal asked on 11 Apr 2012, 09:34 AM
Hi
I want to work a bit more with filtering on my grid

currently my filtering options look something like this

.Filterable(filtering => filtering.Enabled(true)
            .Filters(filters => filters.Add(o => o.firmsize).Contains((string)ViewData["firmsize"]))
            .Filters(filters => filters.Add(o => o.STActive).Contains((string)ViewData["STActive"]))
                        )

and I would like to do something like this

.Filterable(filtering => filtering.Enabled(true)
            .Filters(filters => filters.Add(o => o.firmsize).ViewData["Operator"]((string)ViewData["firmsize"]))
            .Filters(filters => filters.Add(o => o.STActive).ViewData["Operator2"]((string)ViewData["STActive"]))
                        )

so I have dynamic operators instead of the static option (in te above example the static option is contains)

I hope thats clear

Thanks in advance
Tags
Grid
Asked by
neal
Top achievements
Rank 1
Share this question
or