3.2.0

refresh header text?

All,

After the grid is rendered, it appears that it is impossible to change the header text of any of the columns. I have tried changing the original array that was supplied to 'setHeaderText' as well as calling setHeaderText('value',index). I have tried refreshing just the header, but I have not seen a standard way to do this. The only way I can get it to work is to refresh the whole grid, which causes a flicker that I do not like.

Does anyone know how to change the text in a header cell after the grid has been rendered?

Thanks a million,


Michael Klocker
Michael Klocker
September 18,
You can use:
var headers2 = [ "Ticker2", "Name2", "Mkt cap2", "Sales2", "Employees2" ]; 

  obj.setHeaderText(headers2);

  for(var i=0;i<obj.getColumnCount();i++){
  obj.getHeaderTemplate(i).refresh();
  }
Carlos
September 18,
Thanks you sir! That worked very nicely.
Michael Klocker
September 18,
Is there a way to change just a single column or group of header text at runtime?
wkim
October 11,
Should've check the documents before posting.
I found it.
obj.setHeaderText('column1',1);
October 12,

This topic is archived.

See also:


Back to support forum