Opposite of appendTo()

Hi Syncfusion Team,

in my Code I am using the Datagrid and I am appending Tooltips to those elements that are beeing cut off due to lack of column width like in the example below.

 

I add them via the appendTo() Method like in the Code below.



My question is, is there an opposite method of the appendTo() method? I want to remove them as soon as the text is not cut off anymore.


Kind Regards, Peter.


3 Replies 1 reply marked as answer

KM Kanagambigai Murugan Syncfusion Team January 21, 2022 02:01 PM UTC

Hi Peter, 

Thanks for contacting Syncfusion support. 

Based on your query we understood that you want to show the Tooltip for the cropped text and hide/remove Tooltip for the text which are not clipped. 

You can use Tooltip’s destroy method (to remove the Tooltip completely from the DOM) to meet your scenario. 

We have prepared a simple sample to demonstrate the destroy functionality of the Tooltip. 


Kindly check with the sample and let us know if you need any further assistance. 

Regards, 
Kanagambigai M 


Marked as answer

PL Peter Linecker January 24, 2022 07:55 AM UTC

Hi Syncfusion Team,


Thank you, this has solved my problem!


Kind Regards,

Peter



KR Keerthana Rajendran Syncfusion Team January 25, 2022 12:18 PM UTC

Hi Peter, 

Most welcome. We are glad to hear that the provided details helped you. Please get back to us if you need any further assistance. 

Regards, 
Keerthana R. 


Loader.
Up arrow icon