Skip to content

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

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/asp-net-web-forms-grid-display-popup-when-user-clicks-cell-link

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •