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

Show

events

Fired when the FloatingToolBar transitions from hidden to visible as a result of a successful show call. The event is cancelable — calling e.preventDefault() prevents the toolbar from becoming visible. A show call made while the toolbar is already visible (for example, calling show() only to retarget or reposition an open toolbar) does not fire this event, since no Hidden/Visible transition occurs.

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

Event Data

e.preventDefault Function

If invoked, prevents the FloatingToolBar from becoming visible.

e.sender kendo.ui.FloatingToolBar

The widget instance which fired the event.

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