There's a route to deserialize GridCommand (GridCommand.Parse), that takes serialized versions of orderBy, groupBy, and filterBy. I can find ways to serialize sortDescriptors & groupDescriptors, but I can't find code that will serialize filterDescriptors into the same serialized string.
I see an example of what it serializes to, and I can see code in GridBoundColumnSerializer.cs that converts it to a Dictionary, but nothing that turns it into a string.
I need this because I need to create my LINQ query in a webservice, and pass it through my MVC Controller. I need to pass it through in order to add additional search criteria from the search form (that aren't represented in the result DTO that is sent back).
Unfortunately passing CommandGrid to the WebService fails, because the FilterDescriptors don't serialize automatically.
Passing List<FilterDescriptor> fails as well.
I tried using XMLSerializer to serialize it, but it fails because CompositeFilterDescriptor has a Collection of IFiltorDescriptor in it, and it can't serialize interfaces.
Please assist.
Thanks,
- Daniel
I see an example of what it serializes to, and I can see code in GridBoundColumnSerializer.cs that converts it to a Dictionary, but nothing that turns it into a string.
I need this because I need to create my LINQ query in a webservice, and pass it through my MVC Controller. I need to pass it through in order to add additional search criteria from the search form (that aren't represented in the result DTO that is sent back).
Unfortunately passing CommandGrid to the WebService fails, because the FilterDescriptors don't serialize automatically.
Passing List<FilterDescriptor> fails as well.
I tried using XMLSerializer to serialize it, but it fails because CompositeFilterDescriptor has a Collection of IFiltorDescriptor in it, and it can't serialize interfaces.
Please assist.
Thanks,
- Daniel