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

[Solved] Multi field lookup with MarkFirstMatch, LoadOnDemand, and VirtualScrolling on

1 Answer 107 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Doug
Top achievements
Rank 1
Doug asked on 21 Apr 2009, 08:36 PM
I have a RadCombobox that I am allowing lookup based on three fields: Combobox Text Field (Last, First), Value Field (NTID) or First Name.  So for Doug Ross they could enter "d o u" or "r o s" or "d r o" (NTID is dross).  This works real well with an exception.  I found a situation where the MarkFirstMatch marks the second match.

oliver, paul (NTID is poliver)
pool, andrew (NTID is apool)
pople david (NTID is dpople)

When typing "p o" The three options above are populated and the second value is selected.  The first does not show but I know it's there.  This makes sense because the MarkFirstMatch can only match on the text of the dropdown, not a problem.  The problem is every time I click the up arrow to see "oliver, paul" the _ItemsRequesed fires and the dropdown scrolls again to hide "oliver, paul" so the first option shown is "pool, andrew".

Right now I'm just dealing with it because as soon as the user types the l in "p o l" they can get to "oliver, paul" because it is exclusive in the list.  I can turn off MarkFirstMatch and it works correctly.  I just don't understand why the _ItemsRequesed fires.  I'm sure its because pressing the up arrow takes focus away from the label and the _ItemsRequested fires on the full name "pool, andrew" yet the list does not get dropped to the single entry.

Just wondering if anyone has seen something like this.

Thanks,
Doug

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 24 Apr 2009, 01:02 PM
Hello Doug,

I guess that you've set EnableVirtualScrolling property of RadComboBox to true, that's why ItemsRequested event to fires when you're scrolling the dropdown, please set it to false in order to avoid this behavior.

Greetings,
Yana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Doug
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or