Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Marcos Cachu on Sep 08, 2008 12:52
open dhtmlx forum
DHTML Grid, Footer and padding

I am experience some problems with the grid and footer when I add padding. The grid rows get the padding that I designated but this is not being applied to the footer of the grid. Could anybody provide some assitance on the footer?

I am using the following div container for my grid.
<div id="tab_1_0" style="height:100%; width:100%; padding-left:80;">

Everything displays correctly except that the padding is not inheristed by the footer of the grid.

Here is the snippet of code I use to add the footer during table creation
grid.attachFooter("Totals,#cspan,#cspan,<div id='sumcost'>N/A</div>,<div id='sumfee'>N/A</div>,<div id='sumfunding'>N/A</div>");

Thanks for your time!
Answer posted by Support on Sep 09, 2008 01:37

The problem caused by specifi of grid's layout, the footer is absolutly positioned , so it will ignore paddings of original container
To correct situation in your case, next code can be added after grid.init
     
        mygrid.ftr.parentNode.style.left="80px"

Answer posted on Sep 09, 2008 10:32
Thanks!