public override bool IsCompatible(RadTreeNode data, object context)
        {
            if (!base.IsCompatible(data, context))
            {
                return(false);
            }
            DataFilterCriteriaNode filterCriteriaNode = data as DataFilterCriteriaNode;

            return(filterCriteriaNode != null && (object)filterCriteriaNode.ValueType == (object)typeof(bool));
        }
Beispiel #2
0
        public override void Synchronize(DataFilterCriteriaNode criteriaNode)
        {
            base.Synchronize(criteriaNode);
            if (criteriaNode == null)
            {
                return;
            }
            string formattedValue = criteriaNode.GetFormattedValue();

            this.Text = DataFilterOperatorContext.GetDisplayName(criteriaNode.FilterOperator, formattedValue);
        }
        public override void Synchronize(DataFilterCriteriaNode criteriaNode)
        {
            base.Synchronize(criteriaNode);
            this.Text = criteriaNode.GetFormattedValue();
            RadDataFilterElement treeViewElement = criteriaNode.TreeViewElement as RadDataFilterElement;

            if (treeViewElement == null)
            {
                return;
            }
            this.EditorType = treeViewElement.GetEditorType(criteriaNode.ValueType);
        }