Custom Command Button

2 posts, 0 answers
  1. Sam
    Sam avatar
    8 posts
    Member since:
    Mar 2010

    Posted 03 Aug 2016 Link to this post

    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.

  2. Sam
    Sam avatar
    8 posts
    Member since:
    Mar 2010

    Posted 04 Aug 2016 in reply to Sam Link to this post

    My Apologies, please delete this. I posted to the incorrect forum and have started a new thread in UI for ASP.NET MVC - Grid.
Back to Top