This is a migrated thread and some comments may be shown as answers.

GridHyperLinkColumn

1 Answer 157 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Karthi
Top achievements
Rank 1
Karthi asked on 03 Mar 2011, 07:07 AM

I'm migrating repeater control in my code to telerik grid control.
In my repeater control i'm using the following piece of code as my URL

<

 

a href="<%# Globals.GetSiteUrls().Post( (int) DataBinder.Eval(Container.DataItem, "PostID") ) %> ">

 

 

 

I have to use the same in GridHyperLinkColumn.
How to give value in DataNavigateUrlFormatString??

1 Answer, 1 is accepted

Sort by
0
Accepted
Pavlina
Telerik team
answered on 03 Mar 2011, 12:11 PM
Hi Karthi,

In order to achieve this, set the DataNavigateUrlFields property of GridHyperLinkColumn. You can then combine the navigate URL fields by specifying a format string as the value of the DataNavigateUrlFormatString property. Please refer the section "GridHyperLinkColumn" in this article.

Kind regards,
Pavlina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Grid
Asked by
Karthi
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or