예제 #1
0
        public override bool EndEdit()
        {
            RadTextBoxControlElement textBox = this.TextBox;

            textBox.TextChanging       -= new TextChangingEventHandler(this.OnTextBoxTextChanging);
            textBox.TextChanged        -= new EventHandler(this.OnTextBoxTextChanged);
            textBox.KeyDown            -= new KeyEventHandler(this.OnTextBoxKeyDown);
            textBox.RadPropertyChanged -= new RadPropertyChangedEventHandler(this.OnTextBoxRadPropertyChanged);
            textBox.Text = string.Empty;
            textBox.Select(0, 0);
            return(base.EndEdit());
        }
예제 #2
0
        public override bool EndEdit()
        {
            RadTextBoxControlElement textBox = this.TextBox;

            textBox.TextChanging -= new TextChangingEventHandler(this.OnTextChanging);
            textBox.TextChanged  -= new EventHandler(this.OnTextChanged);
            textBox.MouseWheel   -= new MouseEventHandler(this.OnElementMouseWheel);
            textBox.KeyDown      -= new KeyEventHandler(this.OnElementKeyDown);
            textBox.KeyUp        -= new KeyEventHandler(this.OnElementKeyUp);
            textBox.Text          = string.Empty;
            textBox.Select(0, 0);
            textBox.ListElement.StartPosition = (TextPosition)null;
            textBox.ListElement.EndPosition   = (TextPosition)null;
            textBox.AutoCompleteDataSource    = (object)null;
            textBox.AutoCompleteItems.Clear();
            return(base.EndEdit());
        }