Skip to content

DevExpress-Examples/asp-net-web-forms-cardview-detail-data-in-popup-window

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Card View for ASP.NET Web Forms - How to display detail data in a pop-up window

In this example, ASPxCardView contains a hyperlink column.

<dx:CardViewHyperLinkColumn FieldName="CustomerID" >
    <PropertiesHyperLinkEdit NavigateUrlFormatString="javascript:ShowDetailPopup('{0}');" />
</dx:CardViewHyperLinkColumn>

When a user clicks a hyperlink, a pop-up window opens that displays detail data: orders of the current customer. The SetContentUrl method specifies the web page (Orders.aspx) to be displayed in the window and the query parameter (customerID) to select data from the database.

function ShowDetailPopup(customerID) {
    popup.SetContentUrl('Orders.aspx?id=' + customerID);
    popup.SetHeaderText(customerID);
    popup.Show();
}

Files to Review