The tooltip works properly on Grid cells; however, some cells have no information for tooltip, but an empty tooltip container appears. In this case is it possible to cancel the tooltip from appearing. Trapping the onmouseenter does not work becuase this event occurs before the content event fires which has the dataItem content.
content: function(e) {
var item = e.target[0].attributes["myAttribute"].value;
var row = jQuery(e.target).closest("tr");
var dataItem = myGrid.dataItem(row);
var tooltip = dataItem[item];
if (null == tooltip) {
//Cancel display here???
}
return tooltip;
}
Ideas?
content: function(e) {
var item = e.target[0].attributes["myAttribute"].value;
var row = jQuery(e.target).closest("tr");
var dataItem = myGrid.dataItem(row);
var tooltip = dataItem[item];
if (null == tooltip) {
//Cancel display here???
}
return tooltip;
}
Ideas?