Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Manoj Kumar on Apr 15, 2009 05:06
open dhtmlx forum
How can we override the row height of tree grid view

How can we override the row height of tree grid view. That is setted through code in 'dhtmlxtreegrid.js'
_tgc.start="<div style=' overflow:hidden; white-space : nowrap; height:"+(_isIE?20:18)+"px;'>";

I dont want to change it. I want to override it.
Answer posted by dhxSupport on Apr 15, 2009 08:38

You can change row's height with following css rule:

div.gridbox table.row20px tr td{
  height:20px;
  white-space: nowrap;
  padding:0px;
}


Answer posted by manoj on Apr 15, 2009 20:40
This code is not working.
Answer posted by dhxSupport on Apr 16, 2009 00:57

If you have attached skin to your grid, code should looks like that:

div.gridbox_skinName table.row20px tr td{
  height:20px;  <=== here you should set necessary row height
  white-space: nowrap;
  padding:0px;
}

If this code still doesn't work please contackt support@dhtmlx.com and provide sample where this issue appears.