Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#476 closed enhancement (fixed)

Allow for custom DataProviders for ComboBox

Reported by: Richard Paul Owned by: alex
Priority: high Milestone:
Component: Widgets Version: 0.2
Keywords: Cc:
Blocked By: Blocking:

Description

fillInTemplate for dojo.widget.Html.ComboBox? sets the combo box's data provider to dojo.widget.ComboBoxDataProvider?(); with no option to specify a custom data provider. It would be useful if this could be specified elsewhere so that widgets that extend the ComboBox? can set a custom DataProvider? without having to override fillInTemplate (which involves copying all the code bar the single data provider line).

Code Snippet:

234: // FIXME: add logic
235: this.dataProvider = new dojo.widget.ComboBoxDataProvider();

Change History (6)

comment:1 Changed 14 years ago by alex

Milestone: 0.2.2release0.3.1

moving to correct milestone

comment:2 Changed 14 years ago by alex

Owner: changed from anonymous to alex
Status: newassigned

comment:3 Changed 14 years ago by alex

Resolution: fixed
Status: assignedclosed

fixed in [4288]. The new dataProviderClass property allows users to specify the name of a class to use when constructing the data provider. This is only over-ridden if the mode is set to "remote".

comment:4 Changed 14 years ago by mattimustang@…

Resolution: fixed
Status: closedreopened

[4288] broke mode="remote" for ComboBox? and Select widgets

also there appears to be a typo (though it doesn't fix the issue above):

this.seachUrl = cbox.dataUrl;

should probably be:

this.searchUrl = cbox.dataUrl;

comment:5 Changed 14 years ago by bill

Resolution: fixed
Status: reopenedclosed

Yeah, that was a bad regression. I checked in a fix in [4298].

comment:6 Changed 13 years ago by (none)

Milestone: 0.3.1

Milestone 0.3.1 deleted

Note: See TracTickets for help on using tickets.