Back to Devexpress

GridViewToolbarItem.VisibleInBatchEditPreviewChanges Property

aspnet-devexpress-dot-web-dot-gridviewtoolbaritem-e2fa42fc.md

latest3.3 KB
Original Source

GridViewToolbarItem.VisibleInBatchEditPreviewChanges Property

Specifies whether a toolbar item is visible when the grid is in Preview Changes mode.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
public bool VisibleInBatchEditPreviewChanges { get; set; }
vb
<DefaultValue(False)>
Public Property VisibleInBatchEditPreviewChanges As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to display a toolbar item; otherwise, false.

|

Remarks

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

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

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

aspx
<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:

Concept

See Also

GridViewToolbarItem Class

GridViewToolbarItem Members

DevExpress.Web Namespace