Can we change the column headerText at runtime?
Thanks
Hi,
Yes, you can.
var headerTexts = $('#grid1').igGrid("headersTable").find("span");
// Select first element from headerTexts and change to desired value (count from 1)
$(headerTexts[1]).html("ID");
Regards,
Stanimir Todorov
Is there a more direct way to modify the header?
When I tried your code, I had 31 spans, but I only had 11 visible columns and 1 hidden one so I'm not sure why I had all the extras if the code should work. Looking at the innerHTML of the spans, the first column started with the first span (at 0) but the next was at the 2 index (3rd actual)