This question is locked. New answers and comments are not allowed.
Hi,
I'm having some trouble using the data filter in unbound mode. I got a standard scenario.
PropertyInfo namePF= typeof(Schema).GetProperty("name"); PropertyInfo rootNamePF = typeof(Schema).GetProperty("rootName"); PropertyInfo targetNamespacePF = typeof(Schema).GetProperty("targetNamespace"); List<ItemPropertyInfo> infos = new List<ItemPropertyInfo>(); infos.Add(new ItemPropertyInfo("Name", typeof(string), namePF)); infos.Add(new ItemPropertyInfo("Root Name", typeof(string), rootNamePF)); infos.Add(new ItemPropertyInfo("Target Namespace", typeof(string), targetNamespacePF)); this.dfSchemas.ItemProperties = infos; this.dfSchemas.FilterDescriptors.CollectionChanged += this.FilterDescriptors_CollectionChanged; this.radGridViewSchemas.ItemsSource = viewModel.Schemas;
<telerik:RadDataFilter Name="dfSchemas" Margin="5"/> <telerikGridView:RadGridView Name="radGridViewSchemas" ItemsSource="{Binding FilteredSource, ElementName=dfSchemas}"
In the above code snippet case, "Name" property is working fine, but the other 2 properties "rootName" and "targetNamespace" doesn't work. They are all of same basic type string.
Regards,
Saravana