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

[Solved] Link to a detail page

1 Answer 120 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 18 Feb 2010, 09:38 AM
Hello Telerik-Team,

in my RadGrid I need to link to an new page where i I can see and edit more information about the client.

But I don't want to transfer the Customer ID in the Querrystring!

Waht is th best way to do this?  GridHyperLinkColumn or GridButtonColumn ?

Are there example how to do this?

Thanks

Christian

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 23 Feb 2010, 08:15 AM
Hi Christian,

One possible option to handle the required scenario is as follows. You can have a LinkButton with a custom command name, nested in a template column. When the user clicks on the button, this would raise the ItemCommand event handler. There, you would be able to determine additional information on the DataItem which contains the button, and based on this, for example after accessing additional fields in the item:

http://www.telerik.com/help/aspnet-ajax/grdaccessingcellsandrows.html

you would be able to redirect to the required location. I hope this is a feasible option for you.

All the best,
Yavor
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or