Hello,
I create a RadGrid programmaticly and define the bound fields, one of which is a GridHyperLinkColumn below:
Now I'm gonna double click on a row that a new window will show up based on the hyperlink's target site. I have already set grid.ClientSettings.ClientEvents.OnRowDblClick = "RowDblClick";
How to accomplish the client script to get the navigatorUrl of the hyperlink and redirect. Hence, another approach is provided to users if they don't want to click on the hyperlink.
I think the client script should be like this:
function RowDblClick(sender, eventArgs)
{
var dataItem = eventArgs.get_dataItem();
........................................
........................................
window.open();
}
Any suggestion is appreciated.
TIA
BR
I create a RadGrid programmaticly and define the bound fields, one of which is a GridHyperLinkColumn below:
GridHyperLinkColumn siteLink = new GridHyperLinkColumn(); |
string[] siteLinkUrlFields = new String[1]; |
siteLinkUrlFields[0] = "SiteURL"; |
siteLink.DataNavigateUrlFields = siteLinkUrlFields; |
siteLink.DataTextField = "Title"; |
siteLink.HeaderText = "Site Name"; |
siteLink.UniqueName = "SiteName"; |
siteLink.SortExpression = "Title"; |
siteLink.Target = "_blank"; |
grid.MasterTableView.Columns.Add(siteLink); |
How to accomplish the client script to get the navigatorUrl of the hyperlink and redirect. Hence, another approach is provided to users if they don't want to click on the hyperlink.
I think the client script should be like this:
function RowDblClick(sender, eventArgs)
{
var dataItem = eventArgs.get_dataItem();
........................................
........................................
window.open();
}
Any suggestion is appreciated.
TIA
BR