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

[Solved] how to filter dynamic/dictionary properties

0 Answers 12 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.
Montasir
Top achievements
Rank 1
Montasir asked on 11 Dec 2012, 01:33 PM
I'm having problem with using Telerik ExpressionBuilder, the scenario is depicted below:
 
    public class Vehicle
    {
    public int VehicleId { get; set; }
    public string VehicleName { get; set; }
    }
 
So I can use in below way and works fine:
 
    IQueryable<Vehicle> data; // there are some values in 'data' variable
    data = data.Where(ExpressionBuilder.Expression<Vehicle>(filterDescriptors));
     // filterDescriptors is object of IList<IFilterDescriptor> in Telerik
 
But in case of below scenario, it doesn't work:
 
    public class Vehicle
    {
      public Dictionary<string, string> DynamicProperties;
    }
 
 
Trying to use below way(same as above), but doesn't work:
 
    IQueryable<Vehicle> data; // there are some values in 'data' variable
    data = data.Where(ExpressionBuilder.Expression<Vehicle>(filterDescriptors));
 
 
Please suggest and help me with the above issue. **Thanks in advance**.
Tags
Grid
Asked by
Montasir
Top achievements
Rank 1
Share this question
or