Hi,
I have a values stored for a property in bytes within the database and then present these values to the user in Mb by use of a converter on that field in a RadGridView. I have a RadDataFilter attached to the grid with one of the options for filtering the grid being this field.
Unfortunately when the user types in a value that he wants to filter on he will do do it in what he thinks is sensible i.e. Mb (as that is what he sees) but the filter is working as if its still bytes and not giving in the expected results.
I'm sure there must be a simple way around this but i'm struggling...
I'm using item property definitions for the filtering as below in the xaml.
Please can you help.
Thanks
Doug
I have a values stored for a property in bytes within the database and then present these values to the user in Mb by use of a converter on that field in a RadGridView. I have a RadDataFilter attached to the grid with one of the options for filtering the grid being this field.
Unfortunately when the user types in a value that he wants to filter on he will do do it in what he thinks is sensible i.e. Mb (as that is what he sees) but the filter is working as if its still bytes and not giving in the expected results.
I'm sure there must be a simple way around this but i'm struggling...
I'm using item property definitions for the filtering as below in the xaml.
Please can you help.
Thanks
Doug
<telerik:RadDataFilter x:Name=
"radDataFilter"
Source=
"{Binding Items, ElementName=SearchGrid}"
AutoGenerateItemPropertyDefinitions=
"False"
<br> CanUserCreateCompositeFilters=
"True"
><br> <telerik:RadDataFilter.ItemPropertyDefinitions><br> <dataFilter:ItemPropertyDefinition PropertyName=
"ProjectName"
PropertyType=
"{Binding String, Source={StaticResource Types}}"
DisplayName=
"Project name"
/><br> <dataFilter:ItemPropertyDefinition PropertyName=
"DataName"
PropertyType=
"{Binding String, Source={StaticResource Types}}"
DisplayName=
"Data name"
/><br> <dataFilter:ItemPropertyDefinition PropertyName=
"DataType"
PropertyType=
"{Binding String, Source={StaticResource Types}}"
DisplayName=
"Data type"
/><br> <dataFilter:ItemPropertyDefinition PropertyName=
"FileSize"
PropertyType=
"{Binding Int64, Source={StaticResource Types}}"
DisplayName=
"File size"
/><br> <dataFilter:ItemPropertyDefinition PropertyName=
"Path"
PropertyType=
"{Binding String, Source={StaticResource Types}}"
DisplayName=
"Path"
/><br> </telerik:RadDataFilter.ItemPropertyDefinitions><br> </telerik:RadDataFilter>