I can and have done that for different task types already. What I am trying to do is completely turn off tooltips for specific tasks. I'm not sure that's feasible. Here's the latest version I tried - all selected items are as required, just am unable to turn off the tooltip for some tasks. Not setting anything in the tooltip template causes a small, empty tooltip to display.
function
onDataBound() {
var
gantt =
this
;
...
gantt.element.find(
".k-task-single"
).each(
function
(e) {
this
.style.border =
"0px"
;
this
.style.height =
"20px"
;
var
z =
this
;
var
xx = $(z).find(
".taskProj"
);
// a class I added to a span inside the wrapper div in the task template
var
xxx = xx[0];
// there should only be one item in this array
if
($(xxx).data(
"pid"
) ===
null
) {
$(z).tooltip.visible =
false
;
// this isn't working
}
});
}