Tab

ASPxCardView.IsNewCardEditing Property

Indicates whether a new card is being edited.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public bool IsNewCardEditing { get; }
Public ReadOnly Property IsNewCardEditing As Boolean

Property Value

Type Description
Boolean

true if a new card is being edited; otherwise, false.

Examples

The following example shows how to always display the card edit form. To implement this feature, add the code below to the form page.

View Example

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="DevExpress.Xpo.v15.1, Version=15.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Xpo" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v15.1, Version=15.1.5.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ASPxCardView - How to add a new card when the edit form is always visible</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <dx:ASPxCardView ID="ASPxCardView1" runat="server" AutoGenerate