#108689
ivanpeevski
Participant

Hi Oliver,

Here is how you can use the OnCommand property to capture the command and the clicked row:

@using Newtonsoft.Json.Linq;

<Grid DataSource=”@Clients” Editing=”@editing” OnCommand=”OnCommand”>….</Grid>

@code{
….
private void OnCommand(object obj)
{
dynamic commandObject = JObject.Parse(obj.ToString());
string commandName = (commandObject[“name”]).ToObject();
int commandRowId = (commandObject[“id”]).ToObject();
}

}

Best Regards,
Ivan Peevski

Smart UI Team
https://www.htmlelements.com/

  • This reply was modified 9 months, 1 week ago by ivanpeevski.
  • This reply was modified 9 months, 1 week ago by ivanpeevski.