sorry i took some time to answer, i had to deliver the application.
In the end we decided to remove the treegrid from this applicatoin, due to performance issues: i have a tree with 2 root elements and each one has about 400-500 children. it loads quickly, but closing the folder (to hide the children) it took about 8 sec's!
Anyhow, back to the original problem:
I've tried it like this:
colNames:['level','Id','Name','Description','info'],
colModel:[
{name:'level',index:'level', width:40,jsonmap:"level"},
{name:'id',index:'id', width:40, hidden:true},
{name:'name',index:'name', width:150},
{name:'description',index:'description', width:150},
{name:'info',index:'info', width:40,formatter:abk_testFormat,resizable:false,search:false,sortable:false,jsonmap:"name"}
],
And this in my formatter:
abk_testFormat = function(el, cellval, opts){//used to display the 'info' link
console.log("opts3:",opts.rowData);
console.log("opts4:",opts.rowData.level);
Still, opts4 always return "undefined".
I didn't want to go for the first solution (use "afterInsertRow") because of the amount of rows I could have. But I'll try that, and let you know if it works.
Stefan