예제 #1
0
        protected override void ProcessText(DevExpress.XtraEditors.Controls.KeyPressHelper helper, bool canImmediatePopup, char pressedKey, bool partialSearch)
        {
            bool isPopupOpen = this.IsPopupOpen;

            if (this.isNeedShowPopup(canImmediatePopup))
            {
                this.ShowPopup();
            }
            int rowIndex = this.FindItem(helper.Text, partialSearch, 0);
            var t        = typeof(LookUpEdit);
            var field    = t.GetField("isDisplayTextValid", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);

            field.SetValue(this, false);
            this.AutoSearchText = helper.Text;
            if (this.IsMaskBoxAvailable)
            {
                this.maskBoxTextModified();
            }
            this.SelectionStart = helper.Text.Length;
            this.PopupForm.Filter.FilterPrefix = this.IsMaskBoxAvailable ? this.MaskBox.MaskBoxText : base.GetAutoSearchTextFilter();
            this.LayoutChanged();
        }
예제 #2
0
 protected override void ProcessFindItem(DevExpress.XtraEditors.Controls.KeyPressHelper helper, char pressedKey)
 {
     AssignDataSource(AutoSearchText);
     base.ProcessFindItem(helper, pressedKey);
 }