I'm trying to implement a custom command on a grid that needs to invoke an MVC method that accepts the currently selected rows in the grid as an argument (probably as an IEnumerable<>). The method would in turn create a view based on the selections.
I have no problem defining the toolbar button, or even setting .Action() to the MVC method I want to call. I just don't know how to tell Action to send the data I need.
I've also tried implement the onclick method on that button. While i can ultimately invoke onclick, once there nothing i've tried results in the outcome i want.
I'm using the grid in Ajax mode.
Any suggestions?
I have no problem defining the toolbar button, or even setting .Action() to the MVC method I want to call. I just don't know how to tell Action to send the data I need.
I've also tried implement the onclick method on that button. While i can ultimately invoke onclick, once there nothing i've tried results in the outcome i want.
I'm using the grid in Ajax mode.
Any suggestions?