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

Group templating : tooltip

Hello,


I'm trying to do a custom group caption  based on this  https://ej2.syncfusion.com/aspnetcore/documentation/grid/grouping/caption-template?cs-save-lang=1&cs-lang=razor

I'm doing something a bit more complicated, with a button and a form.

But I'm surprised to see my full template code as a tooltip on the grouping rowtitle.png


This is not very good...


1 Reply

RS Rajapandiyan Settu Syncfusion Team November 1, 2022 01:32 PM UTC

Hi Emmanuel,


Thanks for contacting Syncfusion support.

By using the following code in the dataBound event, you can customize the title of caption cell in the Grid.


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


  function dataBound() {

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

    caption.forEach((e) => {

      e.setAttribute('title', ''); // set the innerText value as title of the element

    });

  }

 


Please get back to us if you need further assistance.


Regards,

Rajapandiyan S


Loader.
Live Chat Icon For mobile
Up arrow icon