Greetings,
As per a previous ticket, in a page we're disabling the ability for users to change the expressions in a radfilter, other than the values and the condition type (contains, starts with, etc).
To do that, we're using, as suggested, in the ExpressionItemCreated event the code:
if (e.Item is RadFilterGroupExpressionItem)
{
RadFilterGroupExpressionItem groupItem = e.Item as RadFilterGroupExpressionItem;
groupItem.RemoveButton.Visible = (sender as RadFilter) == FilterChoice;
groupItem.AddExpressionButton.Visible = (sender as RadFilter) == FilterChoice;
groupItem.AddGroupExpressionButton.Visible = (sender as RadFilter) == FilterChoice;
groupItem.GroupOperationChooserLink.Enabled = (sender as RadFilter) == FilterChoice;
}
if (e.Item is RadFilterSingleExpressionItem)
{
RadFilterSingleExpressionItem singleItem = e.Item as RadFilterSingleExpressionItem;
singleItem.FieldNameChooserLink.Enabled = (sender as RadFilter) == FilterChoice;
singleItem.RemoveButton.Visible = (sender as RadFilter) == FilterChoice;
}
This was working perfectly until we've upgraded to the latest version (due to the security warning you sent). Since then, the dropdown to select the field name and to select And/Or are enabled, even though the code suffered no changes.
We really need to disable these options. Please advise. Thank you.
Best Regards,
Nuno Cabrinha