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

DragStart

events

Fired when the user starts repositioning the FloatingToolBar, either by starting a pointer drag or by entering keyboard-driven Move mode. The event is cancelable — calling e.preventDefault() prevents the drag or Move mode from starting.

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

Event Data

e.top Number

The current top offset of the FloatingToolBar, in pixels.

e.left Number

The current left offset of the FloatingToolBar, in pixels.

e.preventDefault Function

If invoked, prevents the drag operation or keyboard Move mode from starting.

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" }
    ],
    dragStart: 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("dragStart", 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