This question is locked. New answers and comments are not allowed.
Hello,
I have a custom command that when i pass in my viewdata, it is always null. For the update or select methods, the view data is passed in. I have the custom command in the toolbar. I'm not sure why it is always passing null. Could it be using the toolbar? I'm using the latest verson of the controls.
My command in toolbar:
Also, my controller:
I have a custom command that when i pass in my viewdata, it is always null. For the update or select methods, the view data is passed in. I have the custom command in the toolbar. I'm not sure why it is always passing null. Could it be using the toolbar? I'm using the latest verson of the controls.
My command in toolbar:
.ToolBar(commands =>
{
commands.Insert();
commands.Custom()
.HtmlAttributes(
new { id = "export" })
.Text(
"Export To Pdf")
.Action(
"ExportToPdf", "Student", new { page = 1, groupby = "~", orderBy = "~", filter = "~", searchId = ViewData["searchId"] });
})
Also, my controller:
public ActionResult ExportToPdf(int page, string groupBy, string orderBy, string filter, string searchId)
{
}