New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

RadFloatingActionButton object

This article lists the client-side API of RadFloatingActionButton and shows how to use it.

To use the API, you must first get a reference to the control's client-side object. For example:

JavaScript
var floatingActionButtonObject = $find("<%=RadFloatingActionButton1.ClientID %>");

RadFloatingActionButton is a server-side wrapper over the Kendo UI FloatingActionButton Widget. Thus, it exposes the API of the underlying Kendo widget. To get a reference to the Kendo widget instance, you can do either of the following:

  • Use the get_kendoWidget() method of the MS AJAX wrapper:

    JavaScript
      var floatingActionButtonObject  = $find("<%=RadFloatingActionButton1.ClientID %>"); //the standard script control object
      var kendoFloatingActionButton = floatingActionButtonObject.get_kendoWidget(); //the Kendo widget
  • Get the Kendo Widget in its usual way. Make sure to use the $telerik.$ jQuery reference:

    JavaScript
      var kendoFloatingActionButton = $telerik.$("#<%=RadFloatingActionButton1.ClientID %>").data("kendoFloatingActionButton"); 

In addition to using the Kendo methods directly, you can also use their wrappers that follow the MS AJAX convention through the RadFloatingActionButton client object.

Table1: Client-side methods exposed by the MS AJAX RadFloatingActionButton object

NameParametersReturn TypeDescription
disposenonenoneDestroys the underlying Kendo widget (calls its destroy method). Once you call it, you will not be able to use the widget or control.
shownonenoneShows the FloatingActionButton if it is hidden.
hidenonenoneHide the FloatingActionButton.
disablenonenoneDisables the FloatingActionButton.
enablenonenoneEnables the FloatingActionButton.
get_itemsnoneArrayReturns the collection of speed-dial items in the button.
get_textnoneStringReturns the text of the FloatingActionButton
set_textStringnoneSets the text of the FloatingActionButton
get_iconnoneStringReturns the icon name of the FloatingActionButton
set_iconStringnoneSets the icon name of the FloatingActionButton
get_shapenoneNumberReturns the enumeration index of the FloatingActionButton shape
set_shapeNumbernoneSets the shape of the FloatingActionButton by its enumeration index
get_sizenoneNumberReturns the enumeration index of the FloatingActionButton size
set_sizeNumbernoneSets the size of the FloatingActionButton by its enumeration index
repaintBooleannoneRepaints the control. The "force" argument determines whether the resizing routine should be executed even if the respective widget's outer dimensions have not changed.

See Also

In this article
See Also
Not finding the help you need?
Contact Support