Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 26, 2008 21:15
open dhtmlx forum
click drop down after dynamic load

Hey,
Have been trying for hours and just can't get these.

I have a combo box with the options created dynamically by data from the database with filtering enabled.

Currently the only way to make the results appear is to start typing however i need to be able to click on it and have it drop down without any typing.

Also, each option has a value (the id of an item) and the option text (the name of an item)
On submit of a form i can get the Id of the selected option but not the text.

Are these things even possible?

Any help would be great.
Cheers.
Answer posted by Support on Mar 27, 2008 02:41
>>Currently the only way to make the results appear is to start typing however i need to be able to click on it and have it drop down without any typing.
There are two modes of filtering

a) server side filtering
    combo.enableFilteringMode(true,url);
       - data loaded from server by typed mask
       - initial options set empty

b) client side filtering
    combo.enableFilteringMode(true)
    combo.loadXML(url)
       - data loaded once, during initialization
       - option set filled during initialization, so it will have some values from the start


>>On submit of a form i can get the Id of the selected option but not the text.
If existing option was selected from option list - only its value will included in form submit. Behavior can be changed only by code modification ( _confirmSelection method, line 798 in latest codebase )