This question is locked. New answers and comments are not allowed.
I want built filters in runtime. (Server -side code).
I need do something how this:
This code isn't working. Can you help me?
Many thanks.
I need do something how this:
Html.Telerik().Grid(Model).Name("MyGrid").Filterable(filtering => filtering.Filters (filter => { if (filterCollection != null) { foreach(FilterObject filtercondition in filterCollection) filter.Add (o => o.GetType().GetProperty( filtercondition.FieldName).GetValue(o, null) ).IsEqualTo( filtercondition.Value); } } ));This code isn't working. Can you help me?
Many thanks.