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

Filter and wildcards

3 Answers 153 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Vlad
Top achievements
Rank 1
Vlad asked on 20 Dec 2012, 09:32 AM
Hi!

We are using a RadComboBox with filter="contains" with a webservice supplying results on demand. All is working well. However, lately, we have changed our search to use Lucene.NET indexing and not Database queries.
Now. Lucene.NET allows wildcards in queries, and this is where problems begin. Webservice returns a set of results, but RadComboBox doesn't display them due to Filter being set to Contains. If I remove Filter property, results are displayed, but not highlighted.
Also, Lucene.NET has it's own highlighter, which I tried to use mimicking what RadComboBox does, when filter is set, but to no avail, as em tag is apparently stripped form RadComboBoxDropDown when filter is not set. I also tried to use custom html tag, but that then gets displayed in combobox input field, which I don't want.

Is there a way of either implementing wildcards in RadComboBox filter or a way to override em stripping so that I can use Lucene.Net highlighter.

3 Answers, 1 is accepted

Sort by
0
Vlad
Top achievements
Rank 1
answered on 07 Jan 2013, 12:11 PM
So no idea what so ever?
0
Cat Cheshire
Top achievements
Rank 1
answered on 10 Jan 2013, 02:08 PM
You can try implementing Server-Side Load On Demand and query the database from server-side.
Take a look at the GetData method implementation here - http://demos.telerik.com/aspnet-ajax/combobox/examples/populatingwithdata/autocompletesql/defaultcs.aspx
You can detect whether the user has typed a wildcard and change the Select query accordingly.
0
Vlad
Top achievements
Rank 1
answered on 15 Jan 2013, 05:16 PM
Server-side event handling for Auto complete? I think I have to say: 'Thanks, but no, thanks'.

Anyway I sorted it out by doing my own parsing on ClientSelectedChanged event. However, then, there was a problem with text displayed if you selected an item via keyboard (no client event for handling that is a really really nice feature, btw), so I set ChangeTextOnKeyBoardNavigation property to' false'.
Tags
ComboBox
Asked by
Vlad
Top achievements
Rank 1
Answers by
Vlad
Top achievements
Rank 1
Cat Cheshire
Top achievements
Rank 1
Share this question
or