Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
How to change HeaderText?
posted

I have found solution by using $('#grid1').igGrid("headersTable").find("span"), but I have some hidden columns (which I am moving also), so is there a way to change HeaderText by columnKey?

Parents
No Data
Reply
  • 2355
    Verified Answer
    Offline posted

    Hi Branko,

    Thank you for posting in our forums! Unfortunately we do not have this functionality build in our grid. However you can change the text directly in the header cell itself. I prepared a sample page that demonstrates this approach. The basic idea is to use the column key which is used to create the TH element’s ID to find the span that holds the header text and change the text.

    Please review it and let me know if it works for you.

    Kind regards,
    Petko Zhekov
    Software Engineer

    sample-change-headertext.zip
Children