We are a paid membership user of dhtmlxsuite and we require your assistance in one of the issues that we are facing with implementing dhxcalendar column in dhtmlxgrid.
stepGridDataMap = dataMap;
DWRUtil.setValue(“wfStepEle”, dataXML);
stepGrd = new dhtmlXGridObject(“wfStepTable”);
stepGrd.enableSmartRendering(false);
initializeGridAjax(stepGrd, “wfStepTable”, “wfStepEle”);
//
/var ids=stepGrd.getAllRowIds();
var idarray=ids.split(",");
for(var i=0;i < idarray.length;i++){
var cellid=stepGrd.getColIndexById(“date”);
stepGrd.setCellExcellType(idarray[i],cellid,“dhxCalendar”);
} /
stepGrd.forEachRow(function(rowId){
var dateId = (rowId+"_duedate");
Calendar.setup({
displayArea : dateId,
showsTime : true,
timeFormat : “12”,
ifFormat : “%m/%d/%Y %I:%M %p”,
daFormat : “%m/%d/%Y %I:%M %p”,
singleClick : true
});
});
Unfortunately it’s not available to use the api of the dhtmlxCalendar for the “dhxCalendar” directly.
You may try to use the onDhxCalendarCreated or onCalendarShow events:
docs.dhtmlx.com/api__dhtmlxgrid_ … event.html
docs.dhtmlx.com/api__dhtmlxgrid_ … event.html