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
3790
change column header text after load?
posted

I want to change the left most column header name to blank "", how could I go about doing that.

Parents Reply
  • 23953
    Offline posted in reply to seang

    Hello Sean,

    Thanks for your feedback.

    We have a known issue: "Grid API calls do not work as expected with DIV elements", so probably you will want to switch to TABLE placeholder for the igGrid in order to use the API.

    At its current state you can set the column header to "" using the following code:

    $("#grid_table > thead > tr:eq(0) > th:eq(0) span.ui-iggrid-headertext").html("");

    If you switch to TABLE placeholder then use the following code:

    $("#grid > thead > tr:eq(0) > th:eq(0) span.ui-iggrid-headertext").html("");

    Selecting the correct header DOM element depend on the fixedHeaders option. I assumed it was not set i.e. it's true by default, but I was wrong.

    Do not hesitate to  ask if you have any additional questions.

    Best regards,
    Martin Pavlov
    Infragistics, Inc.
    support@infragistics.com

Children