Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pdowner on Mar 14, 2008 12:20
open dhtmlx forum
DhtmlxGrid Row Height with Multiline Enabled

DhtmlxGrid is Fantastic! Thanks..

How can I increase the height of all grid rows? When multiline is enabled, the row heights are smaller than default.

    workPackageGrid = new dhtmlXGridObject('workPackages');
    workPackageGrid.setImagePath("../../dhtmlxGrid/codebase/imgs/");
    workPackageGrid.setHeader("WP,Name,Scope,Fiscal Year,Start Date,Finish Date,Deliverables,Work Element, Account Manager");
    workPackageGrid.setInitWidths("50,180,180,90,90,90,200,100,180");
    workPackageGrid.setColAlign("center,left,left,left,left,left,left,left,left")
    workPackageGrid.setColTypes("ro,ed,ed,ed,dhxCalendar,dhxCalendar,txt,ed,coro");
    workPackageGrid.setColSorting("int,str,str,int,str,str,str,str,date")
    workPackageGrid.enableMultiline(true);
    workPackageGrid.enableKeyboardSupport(true);
    workPackageGrid.init();
    workPackageGrid.setSkin("modern");
    workPackageGrid.loadXML(url+'?table=workPackages');

Thank you!
Answer posted by Support on Mar 17, 2008 04:40
>> When multiline is enabled, the row heights are smaller than default.

The enableMultiline method enables  mode when height of the grid row depends on its content. 

>> How can I increase the height of all grid rows?

You can try to set top and bottom padding in the dhtmlxgrid.css:

div.gridbox table.obj td {
    ...
    padding-top:2px;
    padding-bottom:2px;
}
Answer posted by oVox on Mar 17, 2008 07:43

I need to increase the Height to,i try this but doesn't work:

div.gridbox table.obj td {
 border: 1px solid;
 border-color : white Gray Gray white;
 font-family:Arial;
 font-size:12px;
    -moz-user-select:none;
    overflow:hidden;
    empty-cells:show;
 padding-top:6px;
    padding-bottom:6px;
 }

any ideas?, maybe im using a skin, can this be the source of my problem?

Regards,

Answer posted by Support on Mar 17, 2008 09:32
Yes, the skin can be the reason for the issue.

In case of using skin you should change the corresponding class.

For example "light" style:

div.gridbox_light table.obj td {
  ...
    padding-top:2px;
    padding-bottom:2px;
}