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

[Solved] Adding multiple items using DataNavigateUrlFormatString

1 Answer 402 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joe
Top achievements
Rank 1
Joe asked on 17 Jul 2009, 02:02 PM
Hi,

I have a grid and a date range parameter and need to send those date parameter values through the DataNavigateUrlFormat.  How can I do this without hardcoding those values and using the date parameter values (dynamic values)

Example: In the column mentioned below I want to pass “From Date” and “To Date” values as part of the query string.

   <telerik:GridHyperLinkColumn DataNavigateUrlFields="EmailCampaigns" UniqueName="EmailCampaigns"

     DataNavigateUrlFormatString="EmailTrackingBreakup.aspx?MailType={0}&amp;FrmDt=01/01/2009&amp;ToDt=05/31/2009" DataTextField="EmailCampaigns"

     HeaderText="Email Campaigns" SortExpression="EmailCampaigns">

     <HeaderStyle HorizontalAlign="Left" />

     <ItemStyle HorizontalAlign="Left" />

   </telerik:GridHyperLinkColumn>                              


Thanks,

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 23 Jul 2009, 06:30 AM
Hello Joe,

You can use DataNaviateUrlFields to that will to format the navigating url of your hyperlink:

<telerik:GridHyperLinkColumn DataNavigateUrlFields="Field1,Field2" 
   DataNavigateUrlFormatString="{0}{1}" Text="Some Text">  
</telerik:GridHyperLinkColumn> 


Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Joe
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or