Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Francillo on May 15, 2009 01:04
open dhtmlx forum
Calendar link to input, but how to disable onClick on input?

Hi,
I've linked my DHTMLXCalendarto an editable input. An, when I click on the input, the calendar is displayed. But I want to manage the hide/show of the calendar myself.
How to disable the default behaviour?

Regards

Francillo
Answer posted by Alex (support) on May 15, 2009 02:48

Hello, 

in this case you don't need to attach calendar to input. You can hide/show calendar in a certain position. Position can be set by setPosition(y,x) method.

The onClick event handler can be used to show selected value in some input - the sample in the calendar package:

dhtmlxCalendar/samples/date_formating/calendar_date_format.html