Opened 15 years ago

Closed 15 years ago

Last modified 11 years ago

#3129 closed defect (fixed)

dijit.form.Select fails when a labelAttr other than "name" is specified.

Reported by: guest Owned by: haysmark
Priority: high Milestone: 0.9
Component: Dijit - Form Version: 0.9
Keywords: Cc:
Blocked By: Blocking:


It fails. The dropdown simply doesn't appear, despite the fact that the JSON data contains, for each item, a dictionary entry with the correct name.

The keyAttr parameter can be changed alright.

Change History (4)

comment:1 Changed 15 years ago by bill

Component: GeneralDijit
Milestone: 0.9
Owner: changed from anonymous to haysmark

comment:2 Changed 15 years ago by haysmark

Status: newassigned

See the Select demo for an example of a labelAttr="label":

For Select to work, you need these two attributes:

  • searchAttr
  • keyAttr

If you do not have these two attributes, Select cannot work.

Also, right now labelType is not working so currently if you do not set it to "html" the labels will not replace the searchAttr text. Fix coming soon.

comment:3 Changed 15 years ago by Douglas Hays

Resolution: fixed
Status: assignedclosed

(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:4 Changed 11 years ago by bill

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