Hello,
I have a RadDataFilter with a number of filters defined including some Boolean filters. They are defined like this:
When the user selects this filter the checkbox is initially unchecked as seen in screenshot #1.
In this case the user intends to use the filter "Has Event Activity = false", so they make no changes and save the filter (I am saving the filter contents to a database). However, in this case when I look at the filter descriptors the value for this filter is <Unset> as seen below:
A work-around I have discovered is if I check off the box, and then uncheck it, the value will successfully be set to "False".
Is there a way I can ensure that if the user adds the filter and does not touch the checkbox at all, that the value of the filter descriptor is set to "False" rather than staying as <Unset>?
Thank you.
I have a RadDataFilter with a number of filters defined including some Boolean filters. They are defined like this:
ItemPropertyDefinition hasEventActivityDefinition =
new
ItemPropertyDefinition(
"EV_HasEventActivity"
,
typeof
(
bool
),
"Has Event Activity"
);
this
.radDataFilter.ItemPropertyDefinitions.Add(hasEventActivityDefinition);
When the user selects this filter the checkbox is initially unchecked as seen in screenshot #1.
In this case the user intends to use the filter "Has Event Activity = false", so they make no changes and save the filter (I am saving the filter contents to a database). However, in this case when I look at the filter descriptors the value for this filter is <Unset> as seen below:
? control.radDataFilter.FilterDescriptors[0]
{EV_ConstituentHasEventActivity IsEqualTo <Unset>}
[Telerik.Windows.Data.FilterDescriptor]: {EV_ConstituentHasEventActivity IsEqualTo <Unset>}
A work-around I have discovered is if I check off the box, and then uncheck it, the value will successfully be set to "False".
Is there a way I can ensure that if the user adds the filter and does not touch the checkbox at all, that the value of the filter descriptor is set to "False" rather than staying as <Unset>?
Thank you.