We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to hide and add custom title (tool tip) on Grouping caption template

Hi Team,


I am facing an issue with hiding the title for Grouping caption Template. Please help me to hide the title for Grid "Grouping caption template". Also please let me know how can I add custom title "Grouping caption template".

Attached the screenshot below




Regards,
Cyril Ovely.


1 Reply 1 reply marked as answer

PS Pavithra Subramaniyam Syncfusion Team October 31, 2022 05:27 AM UTC

Hi Cyril Ovely,


Thanks for contacting Syncfusion support.


You can remove the customize the default title for the “Group Caption template” elements by overriding the title attribute inside thee “dataBound” event. Please refer to the below code example and the API link for more information.


dataBound() {

  var caption = grid.element.querySelectorAll('.e-groupcaption');

  caption.forEach((e) => {

    e.setAttribute('title', ‘CustomTooltipText’);

  });

}

 


API: https://ej2.syncfusion.com/documentation/api/grid/#databound


Please get back to us if you need further assistance on this.


Regards,

Pavithra S


Marked as answer
Loader.
Live Chat Icon For mobile
Up arrow icon