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.v20.2.dll

Declaration

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

Property Value

Type Default Description
Boolean

false

true to display a toolbar item; otherwise, false.

Remarks

By default, the grid displays only command items that allows you to edit data when the grid is in Changes Preview mode (batch edit):

To display other command items (including custom and templated items) in Changes Preview mode, set a command item's VisibleInBatchEditPreviewChanges property to true.

<dx:ASPxGridView runat="server" ID="Grid" ...>
    <Toolbars>
        <dx:GridViewToolbar ItemAlign="Right">
            <Items>
                ...
                <dx:GridViewToolbarItem Text="Export to PDF" Name="CustomExportToPDF" VisibleInBatchEditPreviewChanges="True" >
                </dx:GridViewToolbarItem>
                ...
            </Items>
        </dx:GridViewToolbar>
    </Toolbars>        
    ...
    <ClientSideEvents ToolbarItemClick="OnToolbarItemClick" />
</dx:ASPxGridView>

Concept

Online Demo

See Also