marcelocbf
12-14-2008, 10:03 PM
Hello,
I was trying to implement a combobox that does a search as I type ... I have already implemented the search so, as I type I take the text property and send a search to my server ... it returns an array with the possible values and I change the combobox dataprovider ... everything ok until now. So, when I receive the result from the server I open the combobox ... but opening it, it automatically selects the first item and I loose my typed text (and I didn't wanted because I can continue searching with a more character text)... So, I tried to set selectedItemIndex to -1, but I loose the text anyways ... Now, besides selecting the text, I save the previous text in a variable and I apply to the text property again, but applying it, it selects all the text and if the user continues typing it looses too ... Those were workarounds I tried to do, but didn't manage to ...
Does anybody know another way I could get it done ?
Thanks,
I was trying to implement a combobox that does a search as I type ... I have already implemented the search so, as I type I take the text property and send a search to my server ... it returns an array with the possible values and I change the combobox dataprovider ... everything ok until now. So, when I receive the result from the server I open the combobox ... but opening it, it automatically selects the first item and I loose my typed text (and I didn't wanted because I can continue searching with a more character text)... So, I tried to set selectedItemIndex to -1, but I loose the text anyways ... Now, besides selecting the text, I save the previous text in a variable and I apply to the text property again, but applying it, it selects all the text and if the user continues typing it looses too ... Those were workarounds I tried to do, but didn't manage to ...
Does anybody know another way I could get it done ?
Thanks,