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

ASPxCardViewExporter.CardViewID Property

Gets or sets the programmatic identifier of the associated ASPxCardView control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue("")]
public virtual string CardViewID { get; set; }

Property Value

Type Default Description
String String.Empty

The programmatic identifier assigned to the ASPxCardView control.

Example

To see data export in action, refer to the following online demo: Exporting to PDF, XLS, XLSX, RTF.

public partial class Exporting_Exporting : System.Web.UI.Page {
    protected void btnPdfExport_Click(object sender, EventArgs e) {
        cardViewExport.WritePdfToResponse();
    }
    protected void btnXlsExport_Click(object sender, EventArgs e) {
        cardViewExport.WriteXlsToResponse(new XlsExportOptionsEx() { ExportType = ExportType.DataAware });
    }
    protected void btnXlsxExport_Click(object sender, EventArgs e) {
        cardViewExport.WriteXlsxToResponse(new XlsxExportOptionsEx() { ExportType = ExportType.DataAware });
    }
    protected void btnRtfExport_Click(object sender, EventArgs e) {
        cardViewExport.WriteRtfToResponse();
    }
}
See Also