Opened 13 years ago

Closed 12 years ago

Last modified 8 years ago

#2265 closed enhancement (fixed)

[DateTextbox] defer creation of Calendar object

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

Description

You don't need to create the DatePicker? object until the user hits the drop down button. Deferring creation should speed up initial page rendering.

Change History (5)

comment:1 Changed 13 years ago by tk

Owner: changed from Karl Tiedt to tk

comment:2 Changed 13 years ago by rheaghen@…

should be optional. if the visual componets are already visible, the expensive work of traversing the dom structure is already complete. instantiating and attaching the widget at this point is very quick, and should not be of much burden. instantiate the dojo widget through a standard inputs' onFocus; using some dummy lookalike to satiate the users eye.

--Ryan

if at first you don't succeed, try try again (by again I mean something different, trying the same thing will simply drive you mad, unless you, being ok with this, expect failure to continue).

comment:3 Changed 12 years ago by Adam Peller

Component: WidgetsDijit
Milestone: 0.9
Owner: changed from tk to haysmark
Summary: DropdownDatePicker: defer creation on DatePicker object[DateTextbox] defer creation of Calendar object
Type: defectenhancement

Mark, there's an old ticket on this subject, which we discussed yesterday. I don't recall the resolution -- perhaps you can close this out?

comment:4 Changed 12 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [8674]) Fixes #1652, #2265, #3000, #3031. Proxy commit for haysmark. Fixed some minor code-styling issues. If the AutoCompleterMenu?'s highlighted option gets detached from the DOM (from consecutive searches) it will highlight the first option on down arrow keypress instead of doing nothing. Removes fake item creation in Select. _DropDownTextBox.Popup relies on PopupManager? to correctly close it. DateTextbox? tells Calendar which language to use; one calendar per DateTextbox? instance. Changed keyField and labelField in test_Select to match earlier changes in Select. Ordered test_Select form element names to be state1-5. Select has new demos demonstrating assigning a store directly, and using the labelFunc to change the textbox value. Creation of popups deferred to arrowClicked and search.

comment:5 Changed 8 years ago by bill

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