This is a migrated thread and some comments may be shown as answers.

Selection of first element

2 Answers 100 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Cyril
Top achievements
Rank 1
Cyril asked on 20 Aug 2008, 04:04 PM
Hello,

I am here to point out what seems to be a little but annoying bug.

When you set FilteringMode to "Contains", if you type some letters, you get the auto-completion to work (so far, just fine). But if you decide to click on the first (and focused) element in the list, it won't catch the text to fill the textbox.

I think it's due to the fact that in FilteringMode "StartsWith", it automatically fills the textbox with the first element found. In "Contains" mode, it just doesn't ...

I hope I have been clear enough about how to reproduce it. And sorry if it has already been submitted.


While I'm here, another question : when I get into "Contains" mode, by default, if I start typing something, the dropdown doesn't open. To solve it, I had to inherit the RadComboBox to bubble up the event OnTextChanged, to make it work. In your demo, it works without any workaround, is that normal ?


Thanks !
Cyril Cathala

2 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 22 Aug 2008, 08:06 AM
Hi Cyril,

This is a known problem in RadComboBox, which will be addressed in the upcoming update of RadControls for Silverlight next week. I already changed the control behavior as follows:
- before: the dropdown opens when you start typing
- now: the dropdown opens when the textbox receives focus, but only if the filtering is enabled. I was thinking about adding a new property OpenDropDownOnFocus, or something similar, which will make clear to the developer when is the dropdown opened, but for now I decided to leave the control as it is.

I will be glad to get your feedback about how do you expect it to behave when the filtering is enabled.

Regarding the second question - I was not able to reproduce the problem and I think that it is not normal to inherit the control, just to let the dropdown to open when you start typing. I suppose that the problem will disappear when you upgrade the control to the version we will release next tuesday.

Your points have been updated.

Best wishes,
Valeri Hristov (Silverlight Team)
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Cyril
Top achievements
Rank 1
answered on 22 Aug 2008, 09:27 AM
All right, this is great ! I guess the dropdown opening on focus is the best behaviour to expect. Maybe you can let the choice between this and opening when text is changed.

I'll just wait for the next version to be released, thank you for your answers :)

Kind regards,

Cyril Cathala
Tags
ComboBox
Asked by
Cyril
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Cyril
Top achievements
Rank 1
Share this question
or