Categories | Question details Back To List | ||
setting different sensitive on 2 dhxCalendar in the same grid 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 (http://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 Answer posted by dhxSupport on Jun 17, 2009 05:59 >>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. Answer posted on Jun 17, 2009 08:07 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()); } |