Considering this code:
The OpenView1Command is defined in my ViewModel. How do I make the binding work?
<
telerik:RadGridView
ItemsSource
=
"{Binding SearchResults}"
RowDetailsVisibilityMode
=
"VisibleWhenSelected"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"First Name"
DataMemberBinding
=
"{Binding FirstName}"
/>
<
telerik:GridViewDataColumn
Header
=
"Last Name"
DataMemberBinding
=
"{Binding LastName}"
/>
</
telerik:RadGridView.Columns
>
<
telerik:RadGridView.RowDetailsTemplate
>
<
DataTemplate
>
<
Button
Command
=
"{Binding OpenView1Command}"
>Open View 1</
Button
>
<!-- This does not work -->
</
DataTemplate
>
</
telerik:RadGridView.RowDetailsTemplate
>
</
telerik:RadGridView
>
The OpenView1Command is defined in my ViewModel. How do I make the binding work?