How do you get access to the Root Logical Operator value? For example, I want to do this
RadDataFilterDialog dialog = new RadDataFilterDialog();
dialog.ShowDialog();
//string expression = dialog.DataFilter.Expression;
//Doesn't work
DataFilterRootNode dfRn = dialog.DataFilter.Nodes[0] as DataFilterRootNode;
if (dfRn != null)
{
var rootLogicalOperator = dialog.DataFilter.Nodes[0].LogicalOperator;
}
//Doesn't work
var rootLogicalOperator = dialog.DataFilter.Nodes[0].LogicalOperator;
dialog.DataFilter.Nodes[0] in the debugger indicates it's of type DataFilterRootNode but if I try to cast to that type to access the LogicalOperator value it gives error Error CS0122 'DataFilterRootNode' is inaccessible due to its protection level
So how do I access the root LogicalOperator value?