Hi, I try to get the auto calculated footer value with:
g2.ftr.rows[1].cells[1].innerHTML
and I get:
0
, intead of just “0” wich is the value of the calculated value. What am I doing wrong?Thanks
Hi, I try to get the auto calculated footer value with:
g2.ftr.rows[1].cells[1].innerHTML
and I get:
Based on used skins the footer cells can have additional HTML markup ( to look in necessary way )
Just use
g2.ftr.rows[1].cells[1].firstChild.innerHTML
By the way, if you need such info , just to insert in different HTML zone - you can use built in ability of auto-calculated values, they can be assigned to any html container on the page, not for grid’s footer only. If somewhere on the page you have:
there are rows in my grid
You can link stat_count to the span element in the following way:
grid._in_header_stat_count(document.getElementById(‘grid_count’),1);