Login Register

How to Disable the DatePicker Calender?

[moving to the appropriate forum...]

Need to Disbale or set to readOnly an input tag with DoJo DatePicker.
JSP (incomplete syntax to allow it to show):
input id="endDate" name="endDate" dojoType="DropdownDatePicker"

JS:
dojo.widget.byId("endDate").inputNode.disabled=true;

Result:
The input textbox is disabled but I am able to open the Calendar and select a date.

Question:
Is there a way to Disable the Calender?

Thanks

Chris
chris.wong@energytransfer.com

How to Disable the DatePicker Calender?

To supplement information in the original question.

JSP:

Try this....

First off, your code isn't for dojo 0.9+ so I think you posted in the wrong forum. It should be in the 0.4 forums.

Second, try disabling your widget this way:

dojo.widget.byId("endDate").disable()

That'll disable the text box and the calendar drop down.

Third, it looks like your second post got cut off.

Hi Seth, Thanks for your

Hi Seth,

Thanks for your feedback on the right forum to post the question and the technical tip. It solves the problem. Is there an online documentation for Dojo 0.4x widgets API?

Chris

KeyPress in DropDownDatePicker... Please Help?

Conduct a KeyPress to use KeyTab in DropDownDatePicker, Please Help in Dojo 0.4.3