/aspxgridview-display-popup-when-user-clicks-cell-link

Create a grid that contains hyperlinks in one of its columns. When a user clicks a hyperlink, a separate popup dialog is shown.

Primary LanguageASP.NETOtherNOASSERTION

Grid View for ASP.NET Web Forms - How to Display a Popup Dialog When a User Clicks a Link in a Grid Row

[Run Online]

This example shows how to create a grid that contains hyperlinks in one of its columns. When a user clicks a hyperlink, a separate popup dialog (ASPxPopupControl) is shown.

A popup is displayed by clicking the grid column link

Call the client-side SetContentUrl method to embed a web page to be displayed in the popup.

function ShowDetailPopup(customerID) {
    popup.SetContentUrl('Orders.aspx?id=' + customerID);
    popup.Show();
}
<dx:GridViewDataHyperLinkColumn FieldName="CustomerID" 
                                ReadOnly="True" 
                                VisibleIndex="0">
    <PropertiesHyperLinkEdit NavigateUrlFormatString="javascript:ShowDetailPopup('{0}');"
        Text="Show Orders">
    </PropertiesHyperLinkEdit>
</dx:GridViewDataHyperLinkColumn>

Files to Look At

Documentation

More Examples