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

Combobox and Autofiltering

4 Answers 93 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
André Freitas
Top achievements
Rank 1
André Freitas asked on 11 Feb 2010, 09:49 PM
First, I think I have found a bug, a little glitch in fact.

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx

Select the combobox, open the options, double esc it. Next time you open it, the list will be blank (you have to delete the text inside, usability fail). Something about the "emptytext" and the filtering action.

The same bug hapens here, but a little bad, the list dont open at all:

<telerik:RadComboBox ID="RadComboBox1" runat="server"
 AllowCustomText="False"
 Filter="Contains"
 EmptyMessage="Select one...">
 <Items>
  <telerik:RadComboBoxItem Text="" Value="None" />
  <telerik:RadComboBoxItem Text="test1" Value="0" />
  <telerik:RadComboBoxItem Text="test2" Value="1" />
  <telerik:RadComboBoxItem Text="test3" Value="2" />
 </Items>
</telerik:RadComboBox>

Second, im trying to build a very simple combobox, with some options inside, AllowCustomText setted to false, and contains filtering on. If the user enter some customtext, and click outside the combobox, or just press enter, I do expected the combo to come back to "emptytext" property, because customtext its not allowed. Do i miss understood the property, is it valid for filtered combos, or Im missing something?

Third, I do live in a country (Brazil) that uses accents, like french. Is there a property to ignore accents in the filter? If not, I think its a good idea for the future.


All the best,
André.

4 Answers, 1 is accepted

Sort by
0
robertw102
Top achievements
Rank 1
answered on 12 Feb 2010, 09:25 PM
I don't know about your first issue, since I haven't had that issue with the Combobox control.

Now about your second question about showing EmptyMessage when you have AllowCustomText="false" set will not work since the EmptyMessage is dependent on AllowCustomText being true.
0
Yana
Telerik team
answered on 17 Feb 2010, 08:23 AM
Hello,

I am not able to understand how to reproduce the first issue, could you please explain in more details? Also which browser you're using?

Regarding the second question, there is a request in our public issue tracking system to allow the empty message to appear regardless of AllowCustomText property. You can vote for it here in order to raise its priority.

Best wishes,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
André Freitas
Top achievements
Rank 1
answered on 19 Feb 2010, 11:29 AM
About the first issue:

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/filteringcombo/defaultcs.aspx

In the above demo, open the combo list clicking it once. Press esc twice. Click again the combo to reopen the list, and it will be a empty list. Now, if you click outside the combo, and click it again to open the list, looks like the filtering option is being used with the text in the emptytext message, because it will always return no results in the list. To fix it you will need to press esc twice, select and delete the emptytext message.

About the second issue:

<telerik:RadComboBox ID="RadComboBox1" runat="server"
 AllowCustomText="False"
 Filter="Contains">
 <Items>
  <telerik:RadComboBoxItem Text="" Value="None" />
  <telerik:RadComboBoxItem Text="test1" Value="0" />
  <telerik:RadComboBoxItem Text="test2" Value="1" />
  <telerik:RadComboBoxItem Text="test3" Value="2" />
 </Items>
</telerik:RadComboBox>

Ok, considering the combobox above, allowcustomtext is false and no empty message is being used. If I do use some text to filter some results in the combobox, and click outside the combo (avoiding to select a option), I expect the combobox to come back to a empty state, but looks like the customtext that I have used to search is selected. Is it right or im miss understanding the allowcustomtext proprerty?

Sorry about my english.

All the best
André.
0
Yana
Telerik team
answered on 23 Feb 2010, 03:16 PM
Hello André Freitas,

Thank you for the explanation. The first issue is a bug in combobox, I've logged it in our public issue tracking system here and it will be fixed. Thank you for reporting it, you can find your point updated.

Regarding the second question, AllowCustomText is always true when you use filtering.  Here you can read how you can select only existing item.

Regards,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
André Freitas
Top achievements
Rank 1
Answers by
robertw102
Top achievements
Rank 1
Yana
Telerik team
André Freitas
Top achievements
Rank 1
Share this question
or