I only want to add a footer based only on some data existing. Is there way to check if a footer already exists on a grid / subgrid (for Grid 3.5 pro)?
Maybe some variation of this using the DOM:
var checked = grid.hdr.rows[1].cells[0].getElementsByTagName(“INPUT”)[0].checked;
Regards
Rich
Hi,
It is a rather old version of dhtmlxGrid (it was released about 12 years ago), so the API is rather limited. You can check if a footer is present by using internal properties, like the following:
const hasFooter = !!grid.ftr;
This value will be set if a footer is already present in the grid. If you need to find some specific value, you can use this.ftr.querySelector
or a similar API to query inside the footer.