Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by patricia on Sep 11, 2008 08:43
open dhtmlx forum
Calendar with grid (sensitive)

how to use setSensitive(dateFrom, dateTo) in a grid (ed,from,to)
thank you
Answer posted by Support on Sep 12, 2008 04:42
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(...
                 if (ind == TO_INDEX) grid._grid_calendarA.setSensitive(...
        }

         return true;
})