Datatable - Search for data in tooltip

147 Views Asked by At

I'm using client side rendering to render a table with data that is sometimes too long to display on a page. I therefore display only the first 50 characters and add a ... with a tooltip containing all of the content.

<td data-toggle="tooltip" data-placement="top" data-container="body" title="@r.Items">
@(string.IsNullOrEmpty(r.Items) ? "" : r.Items.Substring(0, Math.Min(r.Items.Length, 50)) + (r.Items.Length > 50 ? "..." : ""))
</td>

Is there any possible way to allow the search feature to search not only for the shortened content, but also for the tooltip?

0

There are 0 best solutions below