aspnet-devexpress-dot-web-dot-aspxfloatingactionbutton.md
Gets or sets the floating actionbutton’s client programmatic identifier.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public string ClientInstanceName { get; set; }
<DefaultValue("")>
Public Property ClientInstanceName As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A string value that specifies the floating action button’s client identifier.
|
Use the ClientInstanceName property to specify a unique client-side identifier for a floating action button control. The ClientInstanceName property’s value can be used on the client side to programmatically access the client object rendered for the floating action button in client-side script. This property is particularly important in referencing the floating action button when it is contained within a naming container (for instance, within an ASPxPageControl‘s page or an ASPxPopupControl‘s window).
<dx:ASPxFloatingActionButton ID="ASPxFloatingActionButton1" runat="server" ClientInstanceName="fab" ContainerElementID="content">
<ClientSideEvents Init="OnInit" />
<Items>
...
</Items>
</dx:ASPxFloatingActionButton>
function OnInit(s, e) {
fab.SetActionContext("ShareItemContext", true);
AttachEvents();
}
function ChangeHorizontalPosition(value) {
fab.SetHorizontalPosition(value);
}
Floating Action Button - Features
See Also
ASPxFloatingActionButton Class