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

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

4 Answers 122 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
tomekm
Top achievements
Rank 1
tomekm asked on 24 Jun 2010, 10:07 AM

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.

4 Answers, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 25 Jun 2010, 01:52 PM
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
0
tomekm
Top achievements
Rank 1
answered on 25 Jun 2010, 02:12 PM

OK

0
Yana
Telerik team
answered on 25 Jun 2010, 02:24 PM
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
0
tomekm
Top achievements
Rank 1
answered on 25 Jun 2010, 02:29 PM
Thank you 
Tags
ComboBox
Asked by
tomekm
Top achievements
Rank 1
Answers by
Yana
Telerik team
tomekm
Top achievements
Rank 1
Share this question
or