This is a migrated thread and some comments may be shown as answers.
Go to another view with id of row passed.
1 Answer 23 Views
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 21 Apr 2019, 09:16 PM

I would like the ability to be able to go to another view and pass the id of the row clicked within the data grid I no I used to be able to do this in winforms and asp.net but the xamrain version elludes me any ideas would be most great-full. Say my id would be items id in the below grid how would i pass that to another view.

 

<telerikGrid:RadDataGrid AutoGenerateColumns="False"     UserEditMode="Cell" UserFilterMode="Disabled"   x:Name="deliveryItemsGrid">
               <telerikGrid:RadDataGrid.Columns>
 
                   <telerikGrid:DataGridTextColumn PropertyName="StockDescription"
               HeaderText="StockDescription" >
                   </telerikGrid:DataGridTextColumn>
                   <telerikGrid:DataGridTextColumn PropertyName="Price"
               HeaderText="Price" >
                   </telerikGrid:DataGridTextColumn>
                   <telerikGrid:DataGridTextColumn PropertyName="Qty"
               HeaderText="Qty" >
                   </telerikGrid:DataGridTextColumn>
                   <telerikGrid:DataGridBooleanColumn PropertyName="isDelivered"></telerikGrid:DataGridBooleanColumn>
                    
                    
               </telerikGrid:RadDataGrid.Columns>
 
           </telerikGrid:RadDataGrid>
 
<telerikGrid:RadDataGrid AutoGenerateColumns="False"     UserEditMode="Cell" UserFilterMode="Disabled"   x:Name="deliveryItemsGrid">
               <telerikGrid:RadDataGrid.Columns>
 
                   <telerikGrid:DataGridTextColumn PropertyName="StockDescription"
               HeaderText="StockDescription" >
                   </telerikGrid:DataGridTextColumn>
                   <telerikGrid:DataGridTextColumn PropertyName="Price"
               HeaderText="Price" >
                   </telerikGrid:DataGridTextColumn>
                   <telerikGrid:DataGridTextColumn PropertyName="Qty"
               HeaderText="Qty" >
                   </telerikGrid:DataGridTextColumn>
                   <telerikGrid:DataGridBooleanColumn PropertyName="isDelivered"></telerikGrid:DataGridBooleanColumn>
                    
                    
               </telerikGrid:RadDataGrid.Columns>
 
           </telerikGrid:RadDataGrid>

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 23 Apr 2019, 02:33 PM
Hi David,

Thank you for the provided code.

I have created a sample that shows how to get the data from the selected row and navigate to another view where you can visualize it. Basically, you can subscribe to the SelectionChanged event in order to know when something has been selected or deselected. When selection occurs you could navigate to a view and show the data of the business object.

Please download the attached sample and give it a try.

I hope I was helpful.

Regards,
Didi
Progress Telerik
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 Feedback Portal and vote to affect the priority of the items
Asked by
David
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or