Hello,
I'm very new to developing in ASP.NET Core and Telerik's Keno UI. I'm trying to find documentation on how I can change the title of a grid popup window when I click on the "Add New Record" button on top of the Grid. Currently, the word "Edit" is displayed even though the operation is for "insert". How do I go about changing the title of a popup add/edit window for a Grid?
Here's my code:
@(Html.Kendo().Grid<
MyApp.Models.Project
>
()
.Name("Projects")
.Columns(columns =>
{
columns.Bound(c => c.ProjectName).Width(100);
columns.Bound(c => c.ProjectDescription).Width(100);
columns.Bound(c => c.Address);
columns.Bound(c => c.City).Width(100);
columns.Bound(c => c.State).Width(100);
columns.Bound(c => c.ZipCode).Width(50);
columns.Bound(c => c.ContactName);
columns.Bound(c => c.PhoneNumber);
columns.Bound(c => c.Email);
})
.HtmlAttributes(new { style = "height: 380px;" })
.Scrollable()
.Groupable()
.Sortable()
.Pageable(pageable => pageable
.Refresh(true)
.PageSizes(true)
.ButtonCount(5))
.ToolBar(toolbar => toolbar.Create())
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("_ProjectCreate"))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Events(events => {
events.Error("error_handler");
})
.ServerOperation(false)
.Read(read => read.Action("GetProjects", "Projects"))
.Create(create => {
create.Action("Create", "Projects");
})
)
)