Pavlina,
Thank you for the reply, but that did not help (or at least I can't figure out how to translate that to an ASP.NET MVC Razor implementation. Here is my ClientDetailTemplate that contains the toolbar that I would like to add some text to the left of the buttons.
<
script
id
=
"subdepartments"
type
=
"text/kendo-tmpl"
>
@(Html.Kendo().Grid<
CBECloudBO2.ViewModels.SubDepartmentDetailsViewModel
>()
.Name("department_#=Id#")
.Columns(columns =>
{
columns.Bound(s => s.Id).Hidden();
columns.Bound(s => s.DepartmentId).Hidden();
columns.Bound(s => s.DepartmentDescription).Hidden();
columns.Bound(s => s.Code);
columns.Bound(s => s.Description);
})
.ToolBar(toolbar => { toolbar.Save(); toolbar.Create(); })
.DataSource(dataSource => dataSource
.Ajax()
//.PageSize(10)
.Batch(true)
.Model(model => // model.Id(s => s.Id))
{
model.Id(s => s.Id);
model.Field(s => s.Id).DefaultValue(0);
model.Field(s => s.DepartmentId).DefaultValue("#=Id#".AsInt());
model.Field(s => s.Code);
model.Field(s => s.Description);
})
.Read(read => read.Action("SubDepartment_Read", "Department", new { department = "#=Id#" }))
.Update(update => update.Action("SubDepartment_Update", "Department").Type(HttpVerbs.Post))
.Create(create => create.Action("SubDepartment_Create", "Department", new { department = "#=Id#" }).Type(HttpVerbs.Post))
.Sort(sort => sort.Add("Code").Ascending())
.Events(e => e.RequestEnd("onRequestEnd"))
)
.Editable(editable => editable.Mode(GridEditMode.InCell))
.HtmlAttributes(new { style = "height: 180px" })
.Scrollable()
.Sortable()
.Filterable()
.ToClientTemplate()
)
</
script
>
In this scenario, how would I do the same thing as your example?
Thanks
Shawn