Hi All,
I am using RadGridView in WPF application with MVVM light. In celltemplate i am able to bind relay command for button but i am getting null argument on click event.
Sample Code:
<UserControl
..
DataContext="{Binding SearchControlVM, Source={StaticResource Locator}}"
</UserControl>
..
<telerik:RadGridView
..
<telerik:GridViewColumn.CellTemplate>
<DataTemplate>
<telerik:RadButton Content="View" Command="{Binding Path=DataContext.ViewCommand,
RelativeSource={RelativeSource FindAncestor,AncestorType=telerik:RadGridView}}" />
..
</telerik:RadGridView>
How to pass argument to MVVMlight relay command. Any help would be appreciated.
Thanks,
Prashant