Back to Devexpress

EditModeCommandLayoutItem Class

aspnet-devexpress-dot-web-3e670177.md

latest4.3 KB
Original Source

EditModeCommandLayoutItem Class

A layout item for command buttons in the ASPxGridView and ASPxCardView edit forms.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class EditModeCommandLayoutItem :
    CommandLayoutItem
vb
Public Class EditModeCommandLayoutItem
    Inherits CommandLayoutItem

The following members return EditModeCommandLayoutItem objects:

LibraryRelated API Members
ASP.NET Web Forms ControlsCardViewLayoutItemCollection.AddCommandItem(EditModeCommandLayoutItem)
GridViewLayoutItemCollection.AddCommandItem(EditModeCommandLayoutItem)
GridViewLayoutItemCollection.AddCommandItem(String)
ASP.NET MVC ExtensionsMVCxCardViewLayoutItemCollection.AddEditModeCommandItem()
MVCxCardViewLayoutItemCollection.AddEditModeCommandItem(Action<EditModeCommandLayoutItem>)
MVCxGridViewLayoutItemCollection.AddCommandItem()
MVCxGridViewLayoutItemCollection.AddCommandItem(Action<EditModeCommandLayoutItem>)

Remarks

aspx
<dx:ASPxGridView ID="grid" runat="server" ...>
    <EditFormLayoutProperties ColCount="2">
        <Items>
            <dx:GridViewLayoutGroup ColCount="2" GroupBoxDecoration="None">
                <Items>
                    ...
                    <dx:GridViewColumnLayoutItem ColumnName="Position" Width="100%" />
                    <dx:GridViewColumnLayoutItem Caption="Notes" Width="100%" VerticalAlign="Top">
                        <Template>
                            <dx:ASPxMemo ID="notesMemo" runat="server" Width="100%" Height="253" Text='<%# Bind("Notes") %>' />
                        </Template>
                    </dx:GridViewColumnLayoutItem>
                </Items>
            </dx:GridViewLayoutGroup>
            <dx:EditModeCommandLayoutItem Width="100%" HorizontalAlign="Right" />
        </Items>
    </EditFormLayoutProperties>
</dx:ASPxGridView>

Online Demo

ASPxGridView - Edit Form Layout

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

IDataSourceViewSchemaAccessor

Inheritance

Object StateManager CollectionItem LayoutItemBase LayoutItem ContentPlaceholderLayoutItem CommandLayoutItem EditModeCommandLayoutItem BootstrapEditModeCommandLayoutItem

See Also

EditModeCommandLayoutItem Members

DevExpress.Web Namespace