dhtmlxcalendar

Hi,

i have added calendar type to one of the column on grid and its working fine. i want to add onclick event to this calendar. but its not working please suggest with some solution.

mygrid = new dhtmlXGridObject(‘mygrid_container’);
mygrid.setImagePath(“dhtmlx25/dhtmlxGrid/codebase/imgs/”);
var myCalendar = new dhtmlXCalendarObject([“mygrid_container”]);
var myEvent = myCalendar.attachEvent(“onClick”, function(){
alert(myCalendar.getFormatedDate(“20%y-%m-%d”));
});

onclick event is not working

You need to get the dhtmlxCalendar object from the onDhxCalendarCreated, or from the onCalendarShow events:
docs.dhtmlx.com/api__dhtmlxgrid_ … event.html
docs.dhtmlx.com/api__dhtmlxgrid_ … event.html