New to Kendo UI for jQuery? Start a free 30-day trial

DragEnd

events

Fired when the user finishes repositioning the FloatingToolBar, either by ending a pointer drag or by committing or canceling keyboard-driven Move mode.

The event handler function context (available via the this keyword) will be set to the widget instance.

Event Data

e.top Number

The top offset of the FloatingToolBar at the end of the drag or Move mode operation, in pixels.

e.left Number

The left offset of the FloatingToolBar at the end of the drag or Move mode operation, in pixels.

e.sender kendo.ui.FloatingToolBar

The widget instance which fired the event.

<div id="toolbar"></div>
<script>
  $("#toolbar").kendoFloatingToolBar({
    visible: true,
    draggable: true,
    items: [
      { type: "button", text: "Button" }
    ],
    dragEnd: function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
      console.log(e.top, e.left);
    }
  });
</script>
<div id="toolbar"></div>
<script>
  $("#toolbar").kendoFloatingToolBar({
    visible: true,
    draggable: true,
    items: [
      { type: "button", text: "Button" }
    ]
  });
  var floatingToolBar = $("#toolbar").data("kendoFloatingToolBar");
  floatingToolBar.bind("dragEnd", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(e.top, e.left);
  });
</script>
Not finding the help you need?
Contact Support