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

Google-like ComboBox

4 Answers 71 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 10 Jan 2014, 10:31 PM
Hi All,

I've implemented a standard RadComboBox as in this example:
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx

However, it does not appear to be capable of finding substring data, only what things start with.  IE: It can find "John Smith" if I start typing "jo" but if I type "sm" it will not find it.  Can you please advise?

Thanks,
Mark

4 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 10 Jan 2014, 10:47 PM
I'm also getting as system.data.datarowview for every item . . . weird . . .
0
Mark
Top achievements
Rank 1
answered on 11 Jan 2014, 02:24 PM
Ok, I fixed the system.data.datarowview error, but using it as a search box with google-like auto-suggestion functionality seems iffy.
0
Shinu
Top achievements
Rank 2
answered on 13 Jan 2014, 03:47 AM
Hi Mark,

In order to find the Item of RadComboBox using substring, please try to set the Filter property of RadComboBox to 'Contains'. Please have a look into the following ASPX which works fine at my end and also take a look into this online demo.

ASPX:
<telerik:RadComboBox ID="RadComboBox1" runat="server" EmptyMessage="Type" DataSourceID="SqlDataSource1"
    Filter="Contains" DataTextField="ContactName">
</telerik:RadComboBox>

Please provide your code if it doesn't help.
Thanks,
Shinu.


0
Mark
Top achievements
Rank 1
answered on 13 Jan 2014, 03:53 PM
Thanks Shinu!  That did it!  :-)
Tags
ComboBox
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or