SetColTypes() for a gridbased oin a value present in the ce


How do i Set the coltype of a grid dynamically based on the value of a cell present for a row.



If I call the following function after the nodesProcessedGrid.parse(document.getElementById(‘nodesProcessedGridString’).value,“xml”);



it is doesnot set the col types .



e.g.  function setColTypes(){



   for (var i=0; i<nodesProcessedGrid.getRowsNum(); i++){
         var ch  = nodesProcessedGrid.cells(nodesProcessedGrid.getRowId(i),3).getValue() ;
 
   if(ch == ‘Per Request’){
    alert("isnide ")
    nodesProcessedGrid.setColTypes(“ra,ro,ro,ro,ro,ro,ro,ro,ro,link”);



   }else{



nodesProcessedGrid.setColTypes(“ch,ro,ro,ro,ro,ro,price,ro,ro,link”);



}
   }
  }



 



 



 



 



 

setColTypes define global column type values, it will have not big effect after rows already rendered.
Grid has set of methods
setCellExcellType
setColumnExcellType
setRowExcellType
which allows to set cell types dynamically

dhtmlx.com/docs/products/dhtmlxG … xcell.html