Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by roxana aioanei on Jul 06, 2008 23:59
open dhtmlx forum
I have to change the property TYPE for the cells under the diagonal in read only

Hello! I am using a dhtmlxgrid and a have to build a matrix with elements above the first diagonal editable and the elements under diagonal read only. I have to change the property TYPE  for the cells under the diagonal in read only but I don't know how. How can I do this?
T.I.A.
Answer posted by Support on Jul 07, 2008 01:52
Grid support next command to change type dynamically
    grid.setCellExcellType

so next code will work in your case
   
    for (var i=0; i<grid.getRowsNum(); i++)
       grid.setCellExcellType(grid.getRowId(i),i,"ro")

Of course, such code need to be executed only after data loaded in grid