Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Aug 14, 2008 05:36
open dhtmlx forum
how do i make a dhxCalendarA cell non-editable?

I have tried this :
(dhxCalendarA has cellInd=1 and I need to make non-editable only those which satisfy the condition.... )

function doOnCellEditAgenda(state,rowId,cellInd)
                    {
                     if(cellInd==1 && agendagrid.cells(rowId,agendagrid.getColumnsNum()-1).getValue() == 'o')
                     return false;

... but it did no good. The calendar still pops when i double click .
Answer posted by Support on Aug 14, 2008 05:58
You can lock whole row

grid.lockRow(id);

or use onEditCell event, please be sure that rules in your code are valid, returning false from onEditCell hanler will block any cell from edit operation.