Grid with tooltips scroll slow

Hello,

I am trying to use tooltips in cell grids, because sometimes the content is too large. I followed this: https://ej2.syncfusion.com/angular/documentation/grid/how-to/custom-tool-tip-for-columns/ ... But I have some troubles:

The first is that:


But I solve changing the argument to any:



Then it works, but I got this problem because of content null:



So I changed the function to:

tooltip (args: any) {
if (args.data[args.column.field] != null){
let tooltip: Tooltip = new Tooltip({
content: args.data[args.column.field].toString()
}, args.cell);
}
}

And it works exactly how I want:


But the pages has become slow... the scroll of page works lagging now... 

Do you know if there's something I can do to improve performance?

Version of syncfusion:
"@syncfusion/ej2-angular-calendars": "^18.2.44",
"@syncfusion/ej2-angular-dropdowns": "^18.2.44",
"@syncfusion/ej2-angular-grids": "^18.2.44",
"@syncfusion/ej2-angular-navigations": "^18.2.44",
"@syncfusion/ej2-angular-popups": "^18.2.44",
"@syncfusion/ej2-angular-querybuilder": "^18.2.44",
"@syncfusion/ej2-angular-splitbuttons": "^18.2.44",

Thank you

3 Replies 1 reply marked as answer

MS Manivel Sellamuthu Syncfusion Team July 17, 2020 10:37 AM UTC

Hi Rafael, 

Greetings from Syncfusion support. 

Yes. From your requirement we can understand that you want to show tooltip for cell having large content. The suggested documentation demonstrates a way to create tooltip for each cell, which may affect the performance when the grid is having  more cells. 

We already have a built-in support for showing tooltip for large content, which can be defined by the columns.clipMode property as “EllipsisWithTooltip”. So you need not to use queryCellInfo event of this requirement. Please refer the below documentation for more information. 


Screenshot:  

 

Please let us know, if you need further assistance. 

Regards, 
Manivel 


Marked as answer

RA Rafael July 17, 2020 01:25 PM UTC

Hello Manivel,

It works!

Thank you very much :D


MS Manivel Sellamuthu Syncfusion Team July 20, 2020 05:51 AM UTC

Hi Rafael, 

Thanks for your update. 

We are glad that the provided suggestion worked. 

Please let us know, if you need further assistance. 

Regards, 
Manivel 


Loader.
Up arrow icon