Hi,
how can I do a setSensitive on two dhxCalendar in the same grid so as to force user to select startDate and endDate with startDate<endDate?
I found an answer in the knowledge base (dhtmlx.com/docs/products/kb/index.shtml?q=8709) but it seems that a grid uses the same instance of calendar object for each cell of type dhxCalendar.
Thanks
>>but it seems that a grid uses the same instance of calendar object for each cell of type dhxCalendar
Yes, it is. Grid uses the same instance of calendar object for each cell of type dhxCalendar. There is no possibility to set sensitive calendar in the same grid.
I found a solution.
I get back the calendar on cellEditEvent and I do a setSensitive with the value of the cell which contains the other date
function doOnCellEdit(stage, id ,ind){
if (stage==0) {
if (ind == 5) {
searchGrid._grid_calendarA.setSensitive(null, searchGrid.cells(id,6).getDate());
}