This question is locked. New answers and comments are not allowed.
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
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