RadMultiColumnCombobox - AutoFiter does't work right when i press Shift + Tab

3 posts, 1 answers
  1. Exclamation
    Exclamation avatar
    10 posts
    Member since:
    Aug 2012

    Posted 26 Jun 2012 Link to this post

    Hi, Telerik team .
    I using Telerik control winform Q1 2012
    I set my RadMultiColumnComboBox with AutoFilter property is True.
    And i set TabIndex of them as my picture in Attach file.
    Then i select one value of RMCCombobox 1. Next i focus in RMCCombobox 2 .The next step i Press Shift + Tab to focus in RMCCombobox 1. Now, RMCCombobox 1 auto open popup and filter with value is current text of it. it wrongs,Behavior must be just focus in RMCCombobox 1.
    Are you have any idea for my problem?
    Thanks for reading.
  2. Answer
    Svett
    Admin
    Svett avatar
    728 posts

    Posted 29 Jun 2012 Link to this post

    Hello Thanh,

    Thank you for writing.

    I managed to reproduce the issue and I added it to our public issue tracking system. We will address it in a future release.

    In the meantime, you should create a custom multicombo box control to address the issue:
    public class CustomMCCB : RadMultiColumnComboBox
    {
        public override string ThemeClassName
        {
            get
            {
                return typeof(RadMultiColumnComboBox).FullName;
            }
            set
            {
                base.ThemeClassName = value;
            }
        }
     
        protected override RadMultiColumnComboBoxElement CreateMultiColumnComboBoxElement()
        {
            return new CustomMCCBElement();
        }
    }
     
    public class CustomMCCBElement : RadMultiColumnComboBoxElement
    {
        protected override Type ThemeEffectiveType
        {
            get
            {
                return typeof(RadMultiColumnComboBoxElement);
            }
        }
     
        protected override void ProcessTextKeyUp(object sender, System.Windows.Forms.KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Tab ||
                e.KeyCode == (Keys.Tab | Keys.Shift) || e.KeyCode == Keys.ShiftKey)
            {
                return;
            }
     
            base.ProcessTextKeyUp(sender, e);
        }
    }

    I updated your Telerik points.

    Greetings,
    Svett
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Exclamation
    Exclamation avatar
    10 posts
    Member since:
    Aug 2012

    Posted 29 Jun 2012 Link to this post

    Hi , Svett.
    OK, It' s work
    Thank you very much.
Back to Top