or
.ToolBar(toolbar => {toolbar.Template(
@<text>
<div>
@foreach (var role in Model)
{
<input type="checkbox" name="roleIds" value="@role.Id"/>
@Html.Label(role.Name, new { @class = "checkbox" })
}
@item.CreateButton(new Text="New") //it doesn't work,
</div>
</text>); })
how to change the text of the button? thank's!
{
item.Text = product.Player.FullName;
item.Template .....
}
.....
Thanx.
//item.Action("Index", "Player", new {id = product.Id});
item.
Selected = false;
item.
HtmlAttributes["id"] = product.Player.Id;
}));
.DataSource(dataSource => dataSource
.Ajax() // Specify that the data source is of ajax type
.Read(read => read.Action("Products_Read", "Home")) // Specify the action method and controller name
)