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

ASPxCardView.VisibleCardCount Property

Gets the number of visible cards within the CardView.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public int VisibleCardCount { get; }

Property Value

Type Description
Int32

An integer value that specifies the number of visible cards within the ASPxCardView.

Remarks

The VisibleCardCount property returns the number of visible cards displayed within all grid pages.

End-users can see the number of visible cards within the pager:

ASPxCardView_VisibleCardCount

Example

This example demonstrates how to select customers who live in the specified country.

An end-user types the country into the search box and clicks Search. The button editor’s ButtonClick event is handled to call the ASPxClientCardView.PerformCallback method.

This sends a callback to the server and generates the ASPxCardView.CustomCallback event passing it the country entered by the user. The CustomCallback event is handled to select the customers who live in the specified country.

protected void ASPxCardView2_CustomCallback(object sender, ASPxCardViewCustomCallbackEventArgs e)
{
string country = e.Parameters.ToString();
ASPxCardView2.Selection.UnselectAll();
for (int i = 0; i < ASPxCardView2.VisibleCardCount; i++)
    if (ASPxCardView2.GetCardValues(i, "Country") != null)
        if (ASPxCardView2.GetCardValues(i, "Country").ToString() == country)
            ASPxCardView2.Selection.SelectCard(i);
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the VisibleCardCount property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also