How to assign a Url to a Cell in GridGroupingControl?like TargetUrl in Infragistics.

How to assign a Url to a Cell in GridGroupingControl?like TargetUrl in Infragistics.

1 Reply

SD Sandhya D Syncfusion Team February 12, 2014 07:29 AM UTC

Hi Emani,

Thank you for using syncfusion products.

Query : " To assign a Url to a Cell in GridGroupingControl".

Your requirement can be achieved by adding "asp:HyperLink" control in "ItemTemplate" . Please refer the code below.
[Default.aspx]:

<Columns>
<syncfusion:GridColumnDescriptor MappingName="ID" HeaderText="ID"></syncfusion:GridColumnDescriptor>
<syncfusion:GridColumnDescriptor MappingName="ContactTitle" HeaderText="ContactTitle">
<ItemTemplate> <asp:HyperLink  ID="HyperLink1" runat="server" NavigateUrl="<%#GetQuoteHyperLink(Container.StyleInfo.Text)%>"  EnableViewState="False"> <%# Container.StyleInfo.Text %> </asp:HyperLink></ItemTemplate></syncfusion:GridColumnDescriptor>
</Columns>

[Default.aspx.cs]:

protected string GetQuoteHyperLink(string ContactTitle)
{
return "http://finance.yahoo.com/q?s=" + ContactTitle;
}

We have also attached sample for your reference.


Please get back to us if you need further assistance.

Regards,
Sandhya D






Attachment: Paging_51eafd09.zip

Loader.
Up arrow icon