Hello Gerardo,
My name is Dilyan and I'm stepping in for my colleague Dinko who is currently out of office.
As stated by Dinko, it is not possible to pass two parameters through the EventBinding, however, you can use properties of the RadGridView control to determine what action to perform in the command. For example, you can use the x:Name or Tag properties to achieve this.
private void OnCommandExecuted(object obj)
{
var mouseButtonArgs = obj as MouseButtonEventArgs;
var gridViewRow = (mouseButtonArgs.OriginalSource as System.Windows.UIElement).ParentOfType<GridViewRow>();
var gridView = gridViewRow.GridViewDataControl;
if (gridViewRow != null)
{
if (gridView.Name == "clubsGrid")
{
var club = gridViewRow.DataContext as Club;
MessageBox.Show("Clicked club " + club.ToString());
}
else if (gridView.Name == "playersGrid")
{
var player = gridViewRow.DataContext as Player;
MessageBox.Show("Clicked player " + player.ToString());
}
}
}
If you use these properties for something else and cannot set unique values to them, you can create additional attached properties and use those.
For your convenience, I've prepared a small sample project which demonstrates this in action. Please have a look and let me know if something similar would work for you.
Regards,
Dilyan Traykov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.