protected internal virtual void OpenEditor() { BaseDropDownListEditor editor = this.logicalOperatorElement.Editor as BaseDropDownListEditor; if (editor == null) { return; } (editor.EditorElement as RadDropDownListElement)?.ShowPopup(); }
private void RemoveEditorItems() { if (this.EditingElement == null || this.EditingElement.Editor == null) { return; } BaseDropDownListEditor editor = this.logicalOperatorElement.Editor as BaseDropDownListEditor; if (editor == null) { return; } RadDropDownListElement editorElement = editor.EditorElement as RadDropDownListElement; if (editorElement == null) { return; } editorElement.Visibility = ElementVisibility.Visible; }
private void PopulateEditorItems() { BaseDropDownListEditor editor = this.logicalOperatorElement.Editor as BaseDropDownListEditor; if (editor == null) { return; } RadDropDownListElement editorElement = editor.EditorElement as RadDropDownListElement; DataFilterGroupNode groupNode = this.GroupNode; if (editorElement == null || groupNode == null) { return; } editorElement.BeginUpdate(); editorElement.Items.Clear(); int num1 = 0; int num2 = -1; foreach (FilterLogicalOperator logicalOperator in Enum.GetValues(typeof(FilterLogicalOperator))) { RadListDataItem radListDataItem = new RadListDataItem(this.GetOperatorText(logicalOperator), (object)logicalOperator); editorElement.Items.Add(radListDataItem); if (object.Equals((object)logicalOperator, (object)groupNode.LogicalOperator)) { num2 = num1; } ++num1; } editorElement.DropDownWidth = 110; editorElement.SelectedIndex = num2; editorElement.EndUpdate(); editorElement.SelectedValue = (object)groupNode.LogicalOperator; editorElement.Visibility = ElementVisibility.Hidden; }