Learn more from guides & API docs
Catch up with the latest on the blog
Try our many live demos
View webinars
Find answers or ask questions
Docs & demos for Angular
Docs & demos for React
Docs & demos for Vue
Our blazing fast Grid component built with pure JavaScript
Post by thejas.pateel » Mon May 08, 2023 1:33 pm
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 » Mon May 08, 2023 1:56 pm
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 » Mon May 08, 2023 1:58 pm
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 » Mon May 08, 2023 2:15 pm
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.
headerRenderer