:: Forum >> Version 2 >>

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
Monday, September 18, 2006
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
Monday, September 18, 2006
Thanks you sir! That worked very nicely.
Michael Klocker
Monday, September 18, 2006
Is there a way to change just a single column or group of header text at runtime?
wkim
Wednesday, October 11, 2006
Should've check the documents before posting.
I found it.
obj.setHeaderText('column1',1);
Thursday, October 12, 2006



This topic is archived.

Back to support forum

Forum search