Categories | Question details Back To List | ||
auto calculated value Hi, I try to get the auto calculated footer value with: g2.ftr.rows[1].cells[1].innerHTML and I get: <DIV class=hdrcell>0</DIV>, intead of just "0" wich is the value of the calculated value. What am I doing wrong? Thanks
Answer posted by Support on Jun 10, 2008 02:19 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 <span id="grid_count"></span> 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); |