Hi,
I'm trying to add a custom command to a grid. The goal is to show me the details of a record, so I need to pass the Id to my controller.
In the help I've found the following syntax:
.Action(actionName, controllerName, routeValues);
How do I add a my record Id to "routeValues"? I can't find an example.
I would like something like this:
....
columns.Bound(c => c.TopChar1);
columns.Command(command => command.Custom("Details").Action("Details", "Pres", new { Id = ????? }));
....
So far, I've only found a workaround using a javascript combined with Custom("Details").Click("function").
Thx
I'm trying to add a custom command to a grid. The goal is to show me the details of a record, so I need to pass the Id to my controller.
In the help I've found the following syntax:
.Action(actionName, controllerName, routeValues);
How do I add a my record Id to "routeValues"? I can't find an example.
I would like something like this:
....
columns.Bound(c => c.TopChar1);
columns.Command(command => command.Custom("Details").Action("Details", "Pres", new { Id = ????? }));
....
So far, I've only found a workaround using a javascript combined with Custom("Details").Click("function").
Thx