Hi dev_here,
Thank you for sharing your solution with the community.
here's what worked for me:
aspx page:
<ig:TemplateDataField Key="NameColumn">
<ItemTemplate>
<asp:HyperLink ID="link" runat="server" ForeColor="blue" Text='<% #DataBinder.Eval(Container,"DataItem.Name") %>'>
</asp:HyperLink>
</ItemTemplate>
<Header Text="Name" />
</ig:TemplateDataField>
.cs page:
proteted void MyGrid_InitializeRow(object sender, Infragistics.Web.UI.GridControls.RowEventArgs e)
{
if (e.Row.Items.Grid.DataKeyFields=="Id")
int Id = Int32.Parse(e.Row.Items.FindItemByKey("IdColumn").Value.ToString().ToLower());
string pageName = "DetailsPage.aspx";
string refLink = CriticalWatch.HttpUrlBuilder.BuildUrl("~/Test/TestRep/" + pageName, Int32.Parse(Request.QueryString ["TabId"].ToString()), Id=" + Id);
var hprlink = ((HyperLink)e.Row.Items.FindItemByKey("NameColumn").FindControl("link"));
hprlink.NavigateUrl ="BLOCKED SCRIPTopenPopupWindow('" + refLink + "','newwin',500,500,'yes');";
}
I'm just checking if you need any further assistance with the matter.
There is no such property as TargetUrl for the WebHierarchicalDataGrid cells. A possible approach would be to displayt the popup from the client-side CellSelectionChanged event handler. Please refer to the attached sample. Let me know if you have any questions.
For example I could do the following in UltraWebgrid:
e.Row.Items.FindItemByKey("Name").TargetURL = "BLOCKED SCRIPTopenPopupWindow('" + myLink + "','newwin',500,500,'yes');";
What do I do to get TargetUrl in WHDG?