Tab

ASPxCardViewExporter.CardViewID Property

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.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