This is a migrated thread and some comments may be shown as answers.

Custom Command Button

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 03 Aug 2016, 11:36 PM

I have a custom command in my grid:

columns.Command(command => { command.Edit(); command.Custom("InvoiceDetails"); command.Destroy(); }).Width(200);

When the user clicks this button I would simply like to navigate to the page Details on the controller InvoiceController with the correct InvoiceID from the appropriate row the user clicked.

It seems this used to be done like so

commands.Custom("InvoiceDetails").Action("Details", "Invoice").DataRouteValues

However I have no action method on the custom command only a click method?

Where has this action method gone, and how do I now use the click method?

I'm using ASP.net Core 1.

1 Answer, 1 is accepted

Sort by
0
Sam
Top achievements
Rank 1
answered on 04 Aug 2016, 08:38 AM
My Apologies, please delete this. I posted to the incorrect forum and have started a new thread in UI for ASP.NET MVC - Grid.
Tags
Grid
Asked by
Sam
Top achievements
Rank 1
Answers by
Sam
Top achievements
Rank 1
Share this question
or