This is a migrated thread and some comments may be shown as answers.
Disabling autoselect when there is only one row
9 Answers 142 Views
This is a migrated thread and some comments may be shown as answers.
Surya
Top achievements
Rank 1
Surya asked on 07 Dec 2011, 05:55 AM
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

9 Answers, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 09 Dec 2011, 11:22 AM
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.

0
Exclamation
Top achievements
Rank 1
answered on 13 Apr 2012, 08:40 AM
Hi, I have the same prolem with RadMultiColumnComboBox  control
Can I  set CurentRow of EditorControl = null when i typing ?What Properties  set behavor?
0
Svett
Telerik team
answered on 17 Apr 2012, 03:38 PM
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 >>
0
Pham
Top achievements
Rank 1
answered on 20 Apr 2012, 04:22 AM
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
0
Jack
Telerik team
answered on 25 Apr 2012, 06:41 AM
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 >>
0
Pham
Top achievements
Rank 1
answered on 03 May 2012, 10:08 AM
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
0
Jack
Telerik team
answered on 07 May 2012, 02:25 PM
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 >>
0
Exclamation
Top achievements
Rank 1
answered on 30 Jun 2012, 02:30 AM
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.
0
Jack
Telerik team
answered on 03 Jul 2012, 11:44 AM
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 >>
Asked by
Surya
Top achievements
Rank 1
Answers by
Svett
Telerik team
Exclamation
Top achievements
Rank 1
Pham
Top achievements
Rank 1
Jack
Telerik team
Share this question
or