Combobox and Autofiltering

5 posts, 0 answers
  1. André Freitas
    André Freitas avatar
    23 posts
    Member since:
    Feb 2010

    Posted 11 Feb 2010 Link to this post

    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é.

  2. robertw102
    robertw102 avatar
    265 posts
    Member since:
    Jul 2007

    Posted 12 Feb 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 17 Feb 2010 Link to this post

    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.
  5. André Freitas
    André Freitas avatar
    23 posts
    Member since:
    Feb 2010

    Posted 19 Feb 2010 Link to this post

    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é.
  6. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 23 Feb 2010 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017