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

[Solved] Problem with dataBind in ComboBox

1 Answer 87 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Arkadiusz
Top achievements
Rank 1
Arkadiusz asked on 04 Jan 2012, 09:42 AM
I have a test page with a comboBox that loads on demand items via ajax. Opening page and clicking ComboBoxes down arrow fetches the items from the server.

Then im doing 
$('#AjaxComboBox1').data('tComboBox').dataBind();

to clear the ComboBox. Then, when I hit the down arrow of the ComboBox it does not fetch the items form the server.  When I type some text to the combobox then it sends ajax to the server and everything works. 

Now, how can I force it to fetch items from the server with an empty query after dataBind() ?? 

regards,



1 Answer, 1 is accepted

Sort by
0
John DeVight
Top achievements
Rank 1
answered on 13 Jan 2012, 10:47 PM
Hi Arkadiusz,

Instead of calling the dataBind() function, try this:

$('#AjaxComboBox1').data('tComboBox').dropDown.$items = null;

Regards,

John DeVight
Tags
ComboBox
Asked by
Arkadiusz
Top achievements
Rank 1
Answers by
John DeVight
Top achievements
Rank 1
Share this question
or