| protected void grdContactList_PreRender(object sender, EventArgs e) |
| { |
| foreach (GridGroupHeaderItem groupHeader in grdContactList.MasterTableView.GetItems(GridItemType.GroupHeader)) |
| { |
| string strtxt = groupHeader.DataCell.Text; // accessing the groupheader text |
| HyperLink link = new HyperLink(); |
| LinkButton hyperlnk = new LinkButton(); // creting new link |
| hyperlnk.Text = "mailto:" + strtxt; |
| groupHeader.DataCell.Controls.Clear(); |
| groupHeader.DataCell.Controls.Add(hyperlnk); |
| } |
| } |
Dear telerik,
Can you please help me in how to add mailto syntax in the groupheaderitem.
I need them to be able to click them and open the user mail default with the groupheaderitem emailaddress in mail to.
Thank you
Regards