How to highlight item's text when user is typing?

5 posts, 1 answers
  1. tomekm
    tomekm avatar
    38 posts
    Member since:
    Mar 2009

    Posted 24 Jun 2010 Link to this post

    In your Automatic Load On Demand demo page when user type text into combobox, only matching elements are listed AND letters that user typed are bolded on items. Is it possible to achieve that effect when not using Automatic Load On Demand but WCF load on demand?

    I have more complex scenario with related combobox: I use second combo OnClientItemsRequesting event to add first combo's value to context and then WCF returns elements filtered by first combo value and typed text. It works great but it would be even better if I could apply bolding effect.

  2. Answer
    Yana
    Admin
    Yana avatar
    4908 posts

    Posted 25 Jun 2010 Link to this post

    Hello Rychu,

    You just need to set Filter property of the combobox  as demonstrated here.

    Kind 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
  3. tomekm
    tomekm avatar
    38 posts
    Member since:
    Mar 2009

    Posted 25 Jun 2010 Link to this post

    OK

  4. Yana
    Admin
    Yana avatar
    4908 posts

    Posted 25 Jun 2010 Link to this post

    Hello Rychu,

    Please check the Automatic Load On Demand example again - Filter property is set in the code-behind in Page_Load event according to the checkboxes in the configuration panel:

    protected void Page_Load(object sender, EventArgs e)
        {
            RadComboBox1.Filter = FilterStartsWith.Checked ? RadComboBoxFilter.StartsWith : RadComboBoxFilter.Contains;
            RadComboBox2.Filter = FilterStartsWith.Checked ? RadComboBoxFilter.StartsWith : RadComboBoxFilter.Contains;
        }

    It will work in the same way in a combobox populated from WCF Web Service.

    Sincerely yours,
    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. tomekm
    tomekm avatar
    38 posts
    Member since:
    Mar 2009

    Posted 25 Jun 2010 Link to this post

    Thank you 
Back to Top