EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: A-K on August 08, 2014, 04:39:34 AM



Title: question about autocomplete in comobox
Post by: A-K on August 08, 2014, 04:39:34 AM
Hey, I am using the combobox and I have 3 values inside:
Monitor, Clip, Exc.
When I type in the combobox 'M' it opens the autocomple panel and shows me the word 'Monitor' and everything is fine.
but when I use the method $('#cb').combobox('setText', 'M') it only puts the letter M inside the combobox but not opens the autocomplete panel.

How can I make the autocomplete panel to open when changing the text from code?

Thanks, Alon.


Title: Re: question about autocomplete in comobox
Post by: stworthy on August 08, 2014, 05:40:28 PM
Please try this:
Code:
var c = $('#cc');
c.combobox('setText', 'M').combobox('showPanel');
c.combobox('options').keyHandler.query.call(c[0], 'M');


Title: Re: question about autocomplete in comobox
Post by: A-K on August 10, 2014, 09:50:16 AM
Thank you!