Back to Devexpress

ASPxCardView.SettingsText Property

aspnet-devexpress-dot-web-dot-aspxcardview-09004ec1.md

latest2.0 KB
Original Source

ASPxCardView.SettingsText Property

Provides access to the CardView’s text settings.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public ASPxCardViewTextSettings SettingsText { get; }
vb
Public ReadOnly Property SettingsText As ASPxCardViewTextSettings

Property Value

TypeDescription
ASPxCardViewTextSettings

An ASPxCardViewTextSettings object that contains the control’s text settings.

|

Example

The following code applies a filter that selects cards where the country is USA and the quantity is less than 15. The filter criteria are displayed in the ASPxCardView’s title panel.

The image below shows the result:

csharp
CardView.FilterExpression = "[Country] = 'USA' AND [Quantity] < 15";
        CardView.SettingsText.Title = CardView.FilterExpression;
        //...
        //An example on how to filter by dates
        DateTime date1 = new DateTime(1996, 12, 1);
        DateTime date2 = new DateTime(1996, 12, 31);
        string filter = String.Format("[OrderDate] > #{0}# And [OrderDate] < #{1}#",
        date1.ToShortDateString(), date2.ToShortDateString());
        CardView.FilterExpression = filter;

See Also

Card View

ASPxCardView Class

ASPxCardView Members

DevExpress.Web Namespace