Opened 10 years ago

Closed 10 years ago

#8540 closed defect (duplicate)

dojox.widget.Calendar doesn't honor mix/max constraints

Reported by: danilche Owned by: Shane O'Sullivan
Priority: high Milestone: 1.3
Component: DojoX Widgets Version: 1.2.3
Keywords: calendar, constraints Cc:
Blocked By: Blocking:

Description

I tried specifying them both at creation, and at runtime; either:

var cal = new dojox.widget.Calendar(
    {constraints: {min: new Date(2009,2,5),
                   max: new Date(2009,3,3)}
    },
    $("cal")
);

or

cal.constraints = {
    min: new Date(2009,2,10),
    max: new Date(2009,3,3)
};

The Calendar widget itself works fine, it just ignores the mix/max constraints. It doesn't merely fail to grey or cross them out, it lets me click on them too, without any problems.

This manifests in both IE 7 and FF 3.

Change History (3)

comment:1 Changed 10 years ago by dante

Owner: changed from dante to Shane O'Sullivan

does _Calendar have constraints? I thought that was for the DateTextBox? that uses _Cal as a popup?

comment:2 Changed 10 years ago by bill

Summary: dijit.widget.Calendar doesn't honor mix/max constraintsdojox.widget.Calendar doesn't honor mix/max constraints

comment:3 Changed 10 years ago by dante

Milestone: tbd1.3
Resolution: duplicate
Status: newclosed

dup of #8544 - which shane opened based on this same thread, though added a patch.

Note: See TracTickets for help on using tickets.