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

Move

events

Fired when the position of the FloatingToolBar changes as a result of a pointer drag, keyboard-driven Move mode, or a call to the setPosition method.

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

Event Data

e.top Number

The new top offset of the FloatingToolBar, in pixels.

e.left Number

The new left offset of the FloatingToolBar, 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" }
    ],
    move: 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,
    items: [
      { type: "button", text: "Button" }
    ]
  });
  var floatingToolBar = $("#toolbar").data("kendoFloatingToolBar");
  floatingToolBar.bind("move", function(e) {
/* The result can be observed in the DevTools(F12) console of the browser. */
    console.log(e.top, e.left);
  });
  floatingToolBar.setPosition({ top: 60, left: 90 });
</script>
Not finding the help you need?
Contact Support