This question is locked. New answers and comments are not allowed.
I'm having a problem trying to programmatically build a filter for the following situation, on a RadDomainDataSource.
The filter .ANDs a filter based on FK guid (department_uid) with another Composite Filter which ORs 2 filters on text comparing the first letters of FirstName and LastName fields.
Another wrinkle is that the Guid comes from a comboBox, and I have added an extra item "All" to its ItemsSource in which case the user does not want to filter by the FK relationship.
It works fine when I just use the Composite filter for FirstName & LastName.
When I create another CompositeFilter which includes the above CompositeFilter and try to add the filter for the Guid, I have to put Guid.Empty for the initial value, or it errors out with a type error. That results in all the records being filtered out. I tried using a string type for the filter, and converting the Guid to a string in the ComboBox's selectionchanged event, but that errors out too.
Any suggestions?
Could I suggest that you change the RadDataFilter in the future to allow nullable types, and to allow the user to specify a default value for don't filter?
Thanks
Helen
The filter .ANDs a filter based on FK guid (department_uid) with another Composite Filter which ORs 2 filters on text comparing the first letters of FirstName and LastName fields.
Another wrinkle is that the Guid comes from a comboBox, and I have added an extra item "All" to its ItemsSource in which case the user does not want to filter by the FK relationship.
It works fine when I just use the Composite filter for FirstName & LastName.
When I create another CompositeFilter which includes the above CompositeFilter and try to add the filter for the Guid, I have to put Guid.Empty for the initial value, or it errors out with a type error. That results in all the records being filtered out. I tried using a string type for the filter, and converting the Guid to a string in the ComboBox's selectionchanged event, but that errors out too.
Any suggestions?
Could I suggest that you change the RadDataFilter in the future to allow nullable types, and to allow the user to specify a default value for don't filter?
Thanks
Helen