I have seen a number of Threads on this but none that fully answers what I am trying to achieve. I am after the following :
ToolBar(toolbar =>
{
toolbar.Create().Text("New Order");
toolbar.Custom()
. call an action method i.e "<a class='k-button' href='" + Url.Action("Submit", "myController")+"'"+">Submit</a>")
.Text("Submit").IconClass("k-icon k-i-cancel");
})
The answer on a previous tread : toolbar.ClientTemplate("<a class='k-button' href='" + Url.Action("Submit", "myController")+"'"+">Submit</a>");
Does not tell me how I can add the toolbar.Create().Text("New Order"); to the same template.
I also want to pass to the submit action the current Datasource request information i.e filtering etc so that I can refresh the grid on finish.