Skip to main content
Tab

ASPxCardViewExporter.ExportSelectedCardsOnly Property

Gets or sets whether only the selected cards from the ASPxCardView should be exported.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

NuGet Package: DevExpress.Web

#Declaration

public bool ExportSelectedCardsOnly { get; set; }

#Property Value

Type Description
Boolean

true to export only the selected cards from the ASPxCardView; false to export all cards.

#Remarks

Use the ExportSelectedCardsOnly property to specify whether all cards displayed within the ASPxCardView should be exported, or only selected cards.

#Example

The following example exports only selected cards. To see this feature in action, refer to the following DevExpress ASP.NET Card View demo: Export Selected Records.

protected void cardView_RenderBrick(object sender, ASPxCardViewExportRenderingEventArgs e) {
    if(e.Column.FieldName == "PhotoUrl") {
        var path = MapPath(e.Value.ToString());
        if(File.Exists(path))
            e.ImageValue = File.ReadAllBytes(path);
    }
}
See Also