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

[Solved] Hyperlink Column in RadGridView

2 Answers 324 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 12 Dec 2009, 01:56 PM
Hi,

I need to create a column in the radgridview with hyperlinks, so that when the user clicks on this hyperlink, I will show a new page with further details pertaining to the selected row.

Is it possible to tell me how to create a link in a column??

I need something like this: http://demos.telerik.com/silverlight/#GridView/ColumnTypes and am using VB.Net as code behind

Apart from that, I need that when the link is clicked, the page I open is another silverlight page, not a google page, and get the required values pertaining to that row..

Please Help!

Thanks

2 Answers, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 1
answered on 12 Dec 2009, 02:08 PM

Here is a snipped of the code.  As you may see i am navigating to a silverlight page, however for some reason it is not working.

<telerikGridView:GridViewDynamicHyperlinkColumn SortMemberPath="brandname" Header="brandname" NavigateUrlFormatString="/BrandProfile?id={0}"   
                                                         NavigateUrlMemberPaths="brand_id">  
                            <telerikGridView:GridViewDynamicHyperlinkColumn.CellTemplate> 
                                <DataTemplate> 
                                    <StackPanel Orientation="Horizontal">  
                                        <TextBlock Text="{Binding brandname}" /> 
                                    </StackPanel> 
                                </DataTemplate> 
                            </telerikGridView:GridViewDynamicHyperlinkColumn.CellTemplate> 
                        </telerikGridView:GridViewDynamicHyperlinkColumn> 
0
Tsvyatko
Telerik team
answered on 14 Dec 2009, 01:42 PM
Hi Patrick,

Unfortunately Hyperlink column supports only links to web resources. Silverlight navigation is still not integrated.  However you can easily implement the desired behavior by creating custom cell template and using Silverlight Navigation service.

Please check the attached project as reference.


Sincerely yours,
Tsvyatko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Patrick
Top achievements
Rank 1
Answers by
Patrick
Top achievements
Rank 1
Tsvyatko
Telerik team
Share this question
or