Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Jun 13, 2007 14:14
open dhtmlx forum
Getting Column header

Our application have column header which contains caption/text and a checkbox(which we added through code).
The code you have posted gives column header/caption with the HTML code...
"var hdrCell=grid.hdr.rows[hdrRowIndex].cells[cellIndex]
    alert(hdrCell.innerHTML);"
We are interested to save only column label.
Answer posted on Jun 13, 2007 14:39
Basically the task of geting only text part is outside of grid component and related to basis DOM operation


var hdrCell=grid.hdr.rows[hdrRowIndex].cells[cellIndex][_isIE?innerText:textContent]

such command return only text value of cell.
Answer posted on Jun 13, 2007 15:22
The correct code is
var hdrCell=grid.hdr.rows[hdrRowIndex].cells[cellIndex][_isIE?"innerText":"textContent"]
Answer posted by Andrei (Support) on Dec 02, 2014 04:57

To find more precise comments upon this issue, we can offer you read about file upload with progress bar and wysiwyg ajax editor.