Opened 13 years ago

Closed 12 years ago

#2259 closed defect (fixed)

Programmatically created DropdownDatePicker broken

Reported by: guest Owned by: tk
Priority: high Milestone: 0.9
Component: Dijit Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:

Description

DropdownDatePicker? in latest trunk is broken if the widget is being created programmatically: The pulldown datepicker will be displayed on initialization and not - as in 4.0 - when the user clicks on the dropdown icon. Furthermore, by clicking twice on the dropdown icon, the datepicker disappears and shows again, but days won't be selectable any more.

Really basic test page (adjust dojo path):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<script type="text/javascript">
var djConfig = {isDebug: false};
</script>
<script type="text/javascript" src"/packages/dojo/dojo.js" ></script>
<script language="JavaScript" type="text/javascript">
dojo.require("dojo.widget.*");
dojo.hostenv.writeIncludes();
</script>
</head>
<body>
<div id="date_node"></div>
<script type="text/javascript">
var from_wgt = dojo.widget.createWidget(
"DropdownDatePicker",
{widgetId: 'date_wgt', date: "" },
dojo.byId( 'date_node')
);
</script>
</body>
</html>

Change History (3)

comment:1 Changed 12 years ago by dylan

Milestone: 0.4.2
Owner: changed from bill to tk

comment:2 Changed 12 years ago by alex

Milestone: 0.4.20.9

comment:3 Changed 12 years ago by Adam Peller

Component: WidgetsDijit
Resolution: fixed
Status: newclosed

test_validate programmically creates a DateTextbox?, which is the successor to DropdownDatePicker?, and all seems to work. Lots has been rewritten since 0.4.

Note: See TracTickets for help on using tickets.