I'm new at this, so bear with me.
I have a Grid with a toolbar that has a Save() command defined. I also want to define an Approve command, which does backend processing in a similar manner as Save but with a different stored procedure.
Save works fine by simply having toolbar.Save() to create the button, and then datasource.Update("UpdateData", "Controller") to define the backend call.
For Approve, I have tried to do toolbar.Custom().Text("Approve").Action("Approve", "Controller"). This calls the backend Approve method just fine. But it also redirects the page to a /Approve page, which I don't want. I want it to function like Save() does with my Ajax() datasource, and not redirect the browser anywhere.
Is this possible?
I have a Grid with a toolbar that has a Save() command defined. I also want to define an Approve command, which does backend processing in a similar manner as Save but with a different stored procedure.
Save works fine by simply having toolbar.Save() to create the button, and then datasource.Update("UpdateData", "Controller") to define the backend call.
For Approve, I have tried to do toolbar.Custom().Text("Approve").Action("Approve", "Controller"). This calls the backend Approve method just fine. But it also redirects the page to a /Approve page, which I don't want. I want it to function like Save() does with my Ajax() datasource, and not redirect the browser anywhere.
Is this possible?