Categories | Question details Back To List | ||
setsensible(datefrom,dateto) with grid (Urgent) i need to add setsensible to the grid for the second calendar column ('ed,calendar,calendar) to not let the user choose a date less then datefrom thank you Answer posted by Support on Sep 12, 2008 05:03 can be done as grid.attachEvent("onEditCell",function(stage, id ,ind){ if (stage == 1){ //occurs when edit operation started and calendar rendered if (ind == FROM_INDEX) grid._grid_calendarA.setSensitive(null, grid.cells(id,TO_INDEX).getValue()); if (ind == TO_INDEX) grid._grid_calendarA.setSensitive(grid.cells(id,FROM_INDEX).getValue(),null); } return true; }) |