I want to change the left most column header name to blank "", how could I go about doing that.
Hello Seang,
Thank you for posting in the community.
There is not API for doing that out of the box. You should use jQuery and manipulate the igGrid DOM tree.
There are two ways to do that:
The first uses the following code:
$("#grid1").igGrid("headersTable").find('thead > tr:eq(0) > th:eq(0) > span.ui-iggrid-headertext').html("");
This code finds the leftmost column header using the igGrid headersTable API.
The second way uses the following code:
$("#grid1_Name > span.ui-iggrid-headertext").html("");
where #grid1_Name is the name of the th element and is constructed the following way:
<grid_id>_<column_key>, where <grid_id> is the id of the grid placeholder and the <column_key> is the key of the column.
Do not hesitate to ask if you have any additional questions.
Best regards,Martin PavlovInfragistics, Inc.support@infragistics.com
I understand the approach here but so far I cant make it result in any action. I traced all the way up to the html() function and all looks good. Could it possibly be an event I'm canceling? Would this line of code fire any events? I know for sure the grid is fully loaded but no luck changing the visible field name.