Skip to main content

ASPxClientFABAction.GetContextName Method

Gets the FAB action’s context name.

Declaration

GetContextName(): string

Returns

Type Description
string

A string value specifies the context name.

Remarks

Use the ASPxClientFloatingActionButton.SetActionContext method to specify the FAB action by its context name.

Concept

Floating Action Button

Online Demo

External FAB for GridView

Example

<dx:ASPxFloatingActionButton ID="ASPxFloatingActionButton1" runat="server" ClientInstanceName="fab" HorizontalMargin="35" ContainerElementID="form1">
    <ClientSideEvents 
        ContextChanging="OnContextChanging"
    />
    <Items>
        <dx:FABActionGroup ContextName="FocusedRowContext">
            <ExpandImage Url="../Content/FloatingActionButton/Images/EditRowContext.svg"></ExpandImage>
            <Items>
                <dx:FABActionItem ActionName="DeleteRow" Text="Delete">
                    <Image Url="../Content/FloatingActionButton/Images/Delete.svg"></Image>
                </dx:FABActionItem>
                <dx:FABActionItem ActionName="EditRow" Text="Edit">
                    <Image Url="../Content/FloatingActionButton/Images/Edit.svg"></Image>
                </dx:FABActionItem>
            </Items>
        </dx:FABActionGroup>
    ...
    </Items>
</dx:ASPxFloatingActionButton>
See Also