Bind Radbutton in RadGridView to Icommand

2 posts, 0 answers
  1. crazy05
    crazy05 avatar
    74 posts
    Member since:
    Sep 2014

    Posted 08 May 2015 Link to this post

    Here is my Code. Can I use GridViewcolumn and datatemplate for this ? I want Radbutton in every row. Once I click on that button, I want to pass the row details to ICommand. How can I do this ? 

    <telerik:GridViewColumn Width="100">


      public ICommand ShowCommand
                    return new RelayCommand(this.ShowDetails);

  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 11 May 2015 Link to this post


    As to commands used in GridViewColumn, you can check the Commands WPF Demo and EventToCommandBehavior documentation.

    Please note the DataContext of RowDetails is the bound data item. Therefore you can pass it as a CommandParameter.

    You can also check the following resources for more information:
    Commanding Overview
    Command Binding with Parameter Passing.


    See What's Next in App Development. Register for TelerikNEXT.

Back to Top