Hello,
sorry if this has been asked before, I tried searching the
forum but didn’t quite find the same problem I have..
So I made a table with KendoGrid and in the first column of the table I have icons for active
incident tickets and service requests. I want to use the KendoTooltip on the
icons inside the table cell.
I tried out this code snippet from here:
$("#grid").kendoTooltip({
filter: "td:nth-child(1)",
position: "right",
content: function(e){
var dataItem = $("#grid").data("kendoGrid").dataItem(e.target.closest("tr"));
var content = dataItem.Text;
return content;
}
}).data("kendoTooltip");
But the tooltip is applied to the whole cell, while I want to
use it on the individual icons inside the cell. I tried putting the icons
inside a new <div> in the template of the columns, like this (very
simplified):
var column = {
field: "IsAboutConfigItems",
title: "Incidents/Service
Requests ",
template: function (dataItem) {
var
result = "<div id=\“container\“> … <img>…</img> …</div>“;
return
result;
}
};
And the tooltip:
$("#container").kendoTooltip({
content: function (e) {
var result = "test"
;
//etc...
return result;
}
});
But it doesn’t work, there is no tooltip showing up at all but also no errors in DevTools. I’m not sure what I’m doing wrong?