Opened 16 years ago

Closed 15 years ago

Last modified 11 years ago

#1176 closed defect (fixed)

ComboBox: pre-selected or not?

Reported by: [email protected] Owned by: haysmark
Priority: high Milestone: 0.9
Component: Dijit - Form Version: 0.3
Keywords: Cc:
Blocked By: Blocking:


Ok... I'm kinda new at this, but I've spent the past week learning all about the ComboBox?. I've had sevral problems, but for now I'll just focus on preselected options.

if your using this for a pages that may have initial values or not, you must introduce the options differently.

Example - no pre-determined values:

I must use the dataUrl="myDataSource.jsp" to acheive a combobox with no pre-selection. this is necessary to the flow of the application; not forcind the user to remove the initial value to see results on the drop down. if you need creative ideas, I have several, please email me.

Example - YES! pre-determined values:

I must use standard HTML options to acheive a combobox with pre-selected values. as far as I know, you can't designate a preselected value by either, and I'm using standard html terms, option text or value. perhaps a 3rd element could be added to the datasource determining the selected state of that pair



thanx, Ryan McCullough? Weyfortt & Haas Marketing 913-901-2124

personal: skype: rheaghen 816-256-3888 google talk: rheaghen

Change History (6)

comment:1 Changed 16 years ago by dylan

Milestone: 0.5
Priority: highnormal

comment:2 Changed 15 years ago by Adam Peller

Component: WidgetsDijit
Summary: pre-selected or not?ComboBox: pre-selected or not?

comment:3 Changed 15 years ago by Douglas Hays

Owner: changed from bill to haysmark

comment:4 Changed 15 years ago by haysmark

I added the "value" attribute a while back in 0.9 to handle this situation. If you want a preselection, set the value to whatever you want selected first. If you do not want preselection, set value to "" or remove the value attribute. Either way, if you click the drop down arrow, it will display the full result list.

comment:5 Changed 15 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [8729]) Fixes #1176, #1740, #3032, #3086, #3095, #3101, #3129. Proxy commit for haysmark. Code reviewed by bill and doughays. Support for page up/down in AutoCompleterMenu?. setTextValue refactored to setDisplayedValue. Added key handler for DropDownTextBox? so DateTextbox? has basic key support. InlineEditBox? now sets isEmpty to false when the input is indeed nonempty. DropDownTextBox? no longer hides MasterTooltip? if it is already hidden. Updated test_InlineEditBox DateTextbox? and Select widgets to use the correct attributes. Cleaned up test_AutoCompleter and test_Select attributes. Consolidated onkeypress page up/down with arrow up/down. Fixed several code-style issues.

comment:6 Changed 11 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.