customising grid

Hi
Great working with the RC release.
I wish to add a customised row height, I can see how to do that with a new ‘type’

type:‘mygrid’ etc

I also want to colour different lines and can see how to do that with the templateCSS in ‘type’,
type:
{
templateCss:function(obj){
var x = obj.id.substring(0,7);
if(x==“subhead”){
return “subhead”;
}else{
return “item”;
}
}
},

but I cannot see how to include both definitions at the same time.
this is to get around the predeclared defaults of line-height of 42 in the javascript.

Thanks

Hi,

do you want to change the height of all grid rows or only a certain row ?

I am looking at all the grid rows to have the same, but smaller line height, say 25px instead of 42px.
Thanks

You may define height in the type property:

dhx.ui({ view:"grid", ... type:{ height:25 } });