Hi,
I have implemented a search textbox functionality using a radcombobox. The way I do it is by lisening to the KeyUp event and get the text property and perform a search using the text displayed on the combobox. The itemsSource property is bound to a collection called Managers.
My simple search function will get the first 10 records from the database that match the search text and store them to the Managers collection.
Now Im running into a small issue which is "disappearing" text from the combobox.
Here is how the issue occurs:
1) say the current selected manager is called Albert and the itemsSource collection includes 3 record {Albert, Alan, Andre}.
2) The user then performs a search by entering the character 'b' this will get 10 manager record that start with 'b'.
3) the itemsSource doesn't contain Albert anymore. Therefore the SelectedItem is set to null
4) The combobox text will be cleared.
5) how this is an issue? if the user now types the character 'e' my search function will find record starting with 'e' instead of the sequence 'be'
I hope there is an easy work-around. I will appreciate any helpful feedback.
Regards,
Abdul
I have implemented a search textbox functionality using a radcombobox. The way I do it is by lisening to the KeyUp event and get the text property and perform a search using the text displayed on the combobox. The itemsSource property is bound to a collection called Managers.
My simple search function will get the first 10 records from the database that match the search text and store them to the Managers collection.
Now Im running into a small issue which is "disappearing" text from the combobox.
Here is how the issue occurs:
1) say the current selected manager is called Albert and the itemsSource collection includes 3 record {Albert, Alan, Andre}.
2) The user then performs a search by entering the character 'b' this will get 10 manager record that start with 'b'.
3) the itemsSource doesn't contain Albert anymore. Therefore the SelectedItem is set to null
4) The combobox text will be cleared.
5) how this is an issue? if the user now types the character 'e' my search function will find record starting with 'e' instead of the sequence 'be'
I hope there is an easy work-around. I will appreciate any helpful feedback.
Regards,
Abdul