We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

115840 Feb 10,2014 01:15 AM Feb 12,2014 02:29 AM ASP.NET Web Forms (Classic) 1
loading
Tags: GridGroupingControl
Emani
Asked On February 10, 2014 01:15 AM

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

Sandhya D [Syncfusion]
Replied On February 12, 2014 02:29 AM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;