Skip to main content
A newer version of this page is available. .
Tab

GridViewToolbarItem.VisibleInBatchEditPreviewChanges Property

Specifies whether a toolbar item is visible when the grid is in preview changes mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool VisibleInBatchEditPreviewChanges { get; set; }

Property Value

Type Default Description
Boolean false

true to display a toolbar item; otherwise, false.

Remarks

Run Demo: (Web Forms) Batch Edit Mode Run Demo: (MVC) Batch Edit Mode

In Changes Preview mode, the grid displays predefined toolbar items that allow you to edit data:

GridViewToolbarItem - VisibleInBatchEditPreviewChanges Property

To display a custom toolbar item in this mode, set the item’s VisibleInBatchEditPreviewChanges property to true.

<dx:ASPxGridView runat="server" ID="Grid" ...>
    <Toolbars>
        <dx:GridViewToolbarItem 
            Text="Edit Commands" 
            Command="Custom"
            VisibleInBatchEditPreviewChanges="true" >
            <Items>
                <dx:GridViewToolbarItem Command="New" />
                <dx:GridViewToolbarItem Command="Edit" />
                <dx:GridViewToolbarItem Command="Delete" />
            </Items>
        </dx:GridViewToolbarItem>
    </Toolbars>        
    ...
</dx:ASPxGridView>

Result:

GridViewToolbarItem - VisibleInBatchEditPreviewChanges Property

Concept

See Also