Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

361
Views
Getting TypeError: Cannot read properties of undefined (reading 'style') in ag-grid-react

Getting TypeError: Cannot read properties of undefined (reading 'style') in ag-grid react,

I have develop an custom tooltip on header on ag-grid with react, getting the proper tooltip but, getting an error while clicking on the header.

//style contains more css property like height width etc

 const headerCustomIconTemplate = '<div class="ag-cell-label-container" role="presentation">' +
    `<div style="border: 1px solid #0GJH00; 
    text-align: center;
    ">T</div>`+
    '<span ref="eText" class="ag-header-cell-text"></span>' +
    '</div>'

const myTablesColumns = [
   
    {
        autoHeight: true,
        cellRendererFramework: customCellRenderer,
        field: "MyHeader",
        headerName: "MyHeader",
        headerTooltip: `My tooltip content`,
        sortable: true,
        filter: false,
        headerComponentParams: {template:headerCustomIconTemplate},
        
    }]

getting an error when clicking on the header section or on the custom icon component.

screen shot

enter image description here

getting the desired result on hover but when i am clicking on the header getting the TypeError: Cannot read properties of undefined (reading 'style')

looking for solution how to fix header break on onClick or how to create custom tooltip on the the header

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!