New to Kendo UI for jQueryStart a free 30-day trial

Triggered when opening the surface tooltip.

Event Data

e.element kendo.drawing.Element

The element with set tooltip options. Can differ from the target element for groups.

e.preventDefault Function

If invoked, prevents the open action.

e.target kendo.drawing.Element

The target element.

<div id="container"></div>
<script>
  var draw = kendo.drawing;
  var surface = draw.Surface.create($("#container"), {
    tooltipOpen: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
      console.log("tooltip open");
    }
  });

  var path = new draw.Path({
    tooltip: {
      content: "Path"
    }
  }).fill("red")
  .moveTo(50, 0).lineTo(100, 50).lineTo(0, 50).close();

  surface.draw(path);
</script>
Not finding the help you need?
Contact Support