Converting a column to link column gives js error

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

Unfortunately the issue cannot be recovered locally.
Accordingly to the error something is wrong with the syntax on your page.
This may be be an extra/missing bracket.
If issue still occurs for you - please, provide a more detailed samples of your code, demo link or a complete demo, where the issue can be reproduced.

Hi,
The error got fixed. The issue was in the linkStr. I changed it to :

var linkStr = str+"^javascript:showDetails(\""+str+"\")^_self;";

It worked after this change.