Disabling autoselect when there is only one row

10 posts, 0 answers
  1. Surya
    Surya avatar
    35 posts
    Member since:
    Nov 2011

    Posted 06 Dec 2011 Link to this post

    Hi,

    I've a problem with the Autofilter in the MultiColumn ComboBox:

    If AutoFilter is turned on, and I type some numbers in the CB and if there is only one value in the Combo Box which matches with the text we type it is automatically getting selected.

    Is there a way to disable this function because extra numbers are getting added after the autoselect.

    For eg if I m  typing the value 990113 in the text area of CB,and there is only one value in the Combobox which starts with 9901,then
    if we just type 9901 the value 990113 will get automaticaly selected .So when we try to type 990113 ,
    after we type 1 it will automaticaly select 990113 and it will also add 13 which we type and the value will be like this 99011313.

    Please advise how to workaround these problems.

    Thanks
  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 09 Dec 2011 Link to this post

    Hi Surya,

    Presently, there is no way to alter this behavior. We are aware of some limitations of the auto-filtering behavior of RadMultiColumnComboBox control. We will improve it in one of the next releases.

    Kind regards,
    Svett
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Exclamation
    Exclamation avatar
    10 posts
    Member since:
    Aug 2012

    Posted 13 Apr 2012 Link to this post

    Hi, I have the same prolem with RadMultiColumnComboBox  control
    Can I  set CurentRow of EditorControl = null when i typing ?What Properties  set behavor?
  5. Svett
    Admin
    Svett avatar
    728 posts

    Posted 17 Apr 2012 Link to this post

    Hello Thanh,

    Thank you for writing.

    Currently, RadMultiColumnComboBox does not support pure auto-complete suggest or append mode. In regards to your second question, in order to allow me to help you, please let me know, what do you want to achieve by setting the current row to null.

    I am looking forward to your reply.

    Regards,
    Svett
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  6. Pham
    Pham avatar
    7 posts
    Member since:
    Aug 2012

    Posted 19 Apr 2012 Link to this post

    Hi, Svett
    Thanks your answer.
    Currrently , i'm  using Telerik Window Form Q1 2012 .
    I also have the issue with CurrentRow when I'm typing.
    i catch leave event of RadMultiColumComboBox and at time i will do something if SelectedValue ==null . But if i delete all text in it CurrentRow of EditorControl is first row and SelectedValue in leave event not null . And in this case but i add new KeyPress event  if Text is emty i set EditorControl.CurrentRow = null , Now it really work exactly.
    So, if RadMultiColumComboBox  automatic set null for CurrentRow when I'm  typing text then don't need to add keypress event.

    Thanks
  7. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 25 Apr 2012 Link to this post

    Hi Pham,

    I am not sure that I understand your question. Could you please elaborate a bit more and describe the exact behavior that you want to achieve. I will be glad to help further.
     
    Kind regards,
    Jack
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  8. Pham
    Pham avatar
    7 posts
    Member since:
    Aug 2012

    Posted 03 May 2012 Link to this post

    Thanks your reply.
    i set AutoFilter  = true and i want that when i'm typing is EditorControl won't display currentRow as default.(ex: i type "v" char)
    If EditorControl default set currentrow ( you can see in picture filtering.png  ) , when press Key Enter now  SelectedValue of RadMultiColumnComboBox  is first value.
    I want when i press Enter is SelectedValue = null and Text of RadMultiColumnComboBox  is "v".
    Thanks
  9. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 07 May 2012 Link to this post

    Hi Pham,

    Currently, it is not possible to change the behavior of RadMultiColumnComboBox to achieve the described behavior. We will consider improving the API and the behavior of RadMultiColumnComboBox in future. Thank you for your valuable feedback.

    Should you have any other questions, do not hesitate to ask.
     
    All the best,
    Jack
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  10. Exclamation
    Exclamation avatar
    10 posts
    Member since:
    Aug 2012

    Posted 29 Jun 2012 Link to this post

    Hi, Svett.
    Sorry very much because i have some problem with my work and can't reply you soon than.
    With my problem if you set currentrow= null while you typing for filter may be this.Text will be set is empty at this time.
    And my idea is set CurrentRow.isSelected = false; And i can't reset isSelected value at another event. I believe i can control this.
    But current cell appear a orrange line in its border. You have any idea can help for me?
    (Can see my image in attach file)

    public class MyMultiColumnComboBoxElement : RadMultiColumnComboBoxElement
     {
            protected override Type ThemeEffectiveType
            {
                get
                {
                    return typeof(RadMultiColumnComboBoxElement);
                }
            }
     
              public override void ApplyFilter()
             {           
                   base.ApplyFilter();  
                   if (this.EditorControl.CurrentRow != null)
                   {
                        this.EditorControl.CurrentRow.IsSelected = false;
                   }           
             }
    }

    Thanks.
  11. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 03 Jul 2012 Link to this post

    Hi Thanh,

    Like we mentioned earlier in this thread, RadMultiColumnComboBox does not support this feature. However, you can remove the border by setting the IsCurrent property to false too. Here is a sample:
    this.EditorControl.CurrentRow.IsCurrent = false;

    I hope this helps.
     
    Greetings,
    Jack
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready