This is a migrated thread and some comments may be shown as answers.

Bind Object route values to Toolbar

0 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
HaBo
Top achievements
Rank 1
HaBo asked on 24 Jan 2012, 07:30 PM
How can I bind the Object route values in Toolbar

.ToolBar(toolbar => toolbar.Template(
@Ajax.ActionLink("Add New", "AddEdit", "Controller",
new { ID = "<#= ID #>" },
new AjaxOptions
{
OnSuccess = "LoadAddEditForm",
UpdateTargetId = "ShowAddEditFormDialogModel",
InsertionMode = InsertionMode.Replace
}, new { @class = "button", id = "AjaxAddNewButton" }).ToString()
))
Now i would like to know how i can bind object route values.
new { ID = "<#= ID #>" } 
Tags
Grid
Asked by
HaBo
Top achievements
Rank 1
Share this question
or