Go to another view with id of row passed.

2 posts, 0 answers
  1. David
    David avatar
    77 posts
    Member since:
    Nov 2011

    Posted 21 Apr 2019 Link to this post

    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>
  2. Didi
    Admin
    Didi avatar
    356 posts

    Posted 23 Apr 2019 Link to this post

    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
Back to Top