Hi,
I am using Dhtmlx v3.0 in my project and i am trying to convert a column to a columnType “link” after the grid has been loaded by using onXLE event.
[code]function doOnXMLLoadingComplete(grid,count){
if(grid.isTreeGrid()){
// alert(“in progress”);
}else{
grid.forEachRow(function(id){
//id - row's id
var colVal = jQuery.trim(grid.cells(id,grid.getColIndexById(COL_ID)).getValue());
if(colVal != null && colVal != ""){
var linkStr = colVal +"^javascript:showDetails("+colVal +");";
grid.cells(id,grid.getColIndexById(COL_ID)).setValue(linkStr);
// grid.setCellExcellType(id,grid.getColIndexById(COL_ID),“link”);
}
});
grid.setColumnExcellType(grid.getColIndexById(COL_ID),“link”);
}
}[/code]
JS Error :
Let me know if any more information is required.
Thanks
Raksh