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

Select First Item when using "Contains" Filter

6 Answers 151 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
macmariman
Top achievements
Rank 2
macmariman asked on 17 Nov 2008, 06:10 AM
Hello all,

I have the following RadComboBox skin

<telerik:RadComboBox  
     EnableEmbeddedSkins="false" 
     EnableLoadOnDemand="False"       
     AllowCustomText="False" 
     HighlightTemplatedItems="True"  
     SkinID="CBSelection"      
     ShowMoreResultsBox = "False" 
     Skin = "Black" 
     Filter="Contains" 
     ShowDropDownOnTextboxClick="true" 
     MarkFirstMatch="False" 
     EnableTextSelection = "True" 
     Height="150px" 
     runat="server" > 
 </telerik:RadComboBox> 

Problem is that if I start typing something and hit enter then SelectedValue is always empty forcing me to click on the desired item every time. I would like to know if there is a way to make the SelectedValue to hold the first item's value from the filtered list when hitting Enter.

Thanks,

Martín


6 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 17 Nov 2008, 06:39 AM
Hello Macmariman,

I suggest you enable the MarkFirstMatch property.

Kind regards,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
macmariman
Top achievements
Rank 2
answered on 23 Nov 2008, 07:36 AM
Thanks Rosi, it solves the SelectedValue issue but the combo starts behaving as if it was using the "StartsWith" filter instead of "Contains". Strange thing, if backspace is hit then it will show all the correct items until another letter is entered.
Is this a bug?

Thanks,

Martín
0
Simon
Telerik team
answered on 26 Nov 2008, 05:13 PM
Hi macmariman,

Indeed this is the current behavior and it is more likely to be a bug.

We will investigate it further and will search for a resolution.

I will follow up in this forum thread as we have results.

Thank you for letting us know about the issue.

Sincerely yours,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Accepted
Simon
Telerik team
answered on 04 Dec 2008, 05:28 PM
Hi macmariman,

I am writing regarding the issue with MarkFirstMatch set to true and enabled Filter.

Please use the latest hotfix build of Telerik.Web.UI where the issue is resolved - the first Item from the filtered Items list will be highlighted (and not selected).

Your Telerik points have been updated for bringing our attention to the matter.

Best wishes,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Meninx
Top achievements
Rank 1
answered on 16 Dec 2008, 01:17 PM
Hello,

I'm interesting by this solution and I downloaded the new hotfix dll, but when I use it I see the "purchase" messages. I have a subscription for using telerik controls, What must I do to resolve this problem ?

Regards.
0
Atanas Korchev
Telerik team
answered on 16 Dec 2008, 05:41 PM
Hi Jean-Christophe Godinaud,

Please open a support ticket and we would send you a dev version of this hotfix which does not show any trial messages.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
macmariman
Top achievements
Rank 2
Answers by
Rosi
Telerik team
macmariman
Top achievements
Rank 2
Simon
Telerik team
Meninx
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or