Our blazing fast Grid component built with pure JavaScript


Post by thejas.pateel »

Hi ,
How can we access record in header render i need it for customisation.

headerRenderer: ({ record }) => { 
              console.log( "Header" )
          console.log( record )
              return " <div style='text-transform: none; text-align: center; font-weight:bold'>Bottom<br>MD (m)</div>" }

it is giving undefined


Post by tasnim »

Hi,

Which record do you want to access? There is no record parameter available for this https://bryntum.com/products/grid/docs/api/Grid/column/Column#config-headerRenderer

If you use the renderer you'll be able to access the record https://bryntum.com/products/grid/docs/api/Grid/column/Column#config-renderer


Post by thejas.pateel »

Hi,
See i want to assign some data coming from api in headerrender not render please provide how to get record or data in headerrender event


Post by tasnim »

Hi,

Sorry, I'm unsure which record you expect to have in headerRenderer (first, second, or last ...).
The column header is for all records, so it can not have a record passed as a parameter.


Post Reply