How do you mean refresh a column header? What are you trying to achieve other than changing the column text?
Re: Changing a column text label
Posted: Sun Mar 14, 2021 7:07 pm
by gregc
Just trying to change the label without having to reload the whole page.
Re: Changing a column text label
Posted: Sun Mar 14, 2021 7:09 pm
by mats
Just do:
grid.columns.first.text = 'foo'
Re: Changing a column text label
Posted: Sun Mar 14, 2021 7:24 pm
by gregc
ok. what is the dot notation to reference it by fieldname or by nbr i.e. nth column
my guessing is not right
window.genericgrid.columns.category2.text='wow';
window.genericgrid.columns.get('category2').text='wow';
Re: Changing a column text label
Posted: Sun Mar 14, 2021 7:32 pm
by mats
"columns" is a regular store, so use the id of your column: