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

[Solved] Double click row to open another page with ID column of grid as parameter

1 Answer 179 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mark Davison
Top achievements
Rank 1
Mark Davison asked on 26 Jan 2011, 11:59 PM
Hi,

We have (a common) scenario where we want to display a grid of data and when the user double cliks a row / cell, we want to navigate to a detail page passing in the ID for the item.

I am struggling to find a way to do this simple task and I am hoping someone has done this and can point me in the right direction.

We have the grid rendering and populated with data. We would normally store the internal item id in a hidden column in the grid (IsVisible=False) but it then appears that this hidden column is not available in the internal list of the grids columns.

So, can anyone recommend how to store the internal item id's that we need and then how to access this id when the user double clicks on a row?

All / any help much appreciated!

Regards,

Mark

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 28 Jan 2011, 03:09 PM
Hello Mark Davison,

You may take a look at this forum thread for a reference. However, in your case once you double-click on the row/cell, you need to get the underlaying item and set it as the DataContext of the DetailsPresenter. If you expose an ID property, you may still get it from the data item. 

Regards,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Mark Davison
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or