Hello,
I have the feeling that my request has been answered somewhere but I can't find it, so after hours crawling support forums and docs I decided to post my own request.
I can't send my sources on public areas but I will try to explain it as clear as possible :
The context is a Silverlight application using RIA Services . The application initialization consists of User authentication and then 'Master data' loading. All master data are stored in the application context (client side) as lists of entities (countries, lookups, objects statuses,...) so it allows me to query only codes instead of using .Include("NavigationProperty") for most used properties.
I have a RadGridView that displays list of products. Each product has a property 'CountryCode' which is a number (ISO Country code) that defines the country where it is produced. The grid column template uses a converter to display the country name instead of the country code (all relevant countries are loaded in the application initialization). This column also uses a custom method to get distinct values for the country that returns all country names loaded in the application context.
The issue is that the filter then sends a request to the RIA service with a condition like 'CountryCode = 'France'" which is incorrect.
How can I set the filter to display the country name but to use the country code for Filtering (something like Display/Value member in lists) ?
Thanks in advance for the answer,
Arnaud
I have the feeling that my request has been answered somewhere but I can't find it, so after hours crawling support forums and docs I decided to post my own request.
I can't send my sources on public areas but I will try to explain it as clear as possible :
The context is a Silverlight application using RIA Services . The application initialization consists of User authentication and then 'Master data' loading. All master data are stored in the application context (client side) as lists of entities (countries, lookups, objects statuses,...) so it allows me to query only codes instead of using .Include("NavigationProperty") for most used properties.
I have a RadGridView that displays list of products. Each product has a property 'CountryCode' which is a number (ISO Country code) that defines the country where it is produced. The grid column template uses a converter to display the country name instead of the country code (all relevant countries are loaded in the application initialization). This column also uses a custom method to get distinct values for the country that returns all country names loaded in the application context.
The issue is that the filter then sends a request to the RIA service with a condition like 'CountryCode = 'France'" which is incorrect.
How can I set the filter to display the country name but to use the country code for Filtering (something like Display/Value member in lists) ?
Thanks in advance for the answer,
Arnaud