Hi,
I have problem with a kendo grid. It is rendered in an window which opens after clicking a button.
Firstly it makes two POST requests.
Secondly in IE an error htmlfile invalid element occurs. Can anybody help me with that?
@(Html.Kendo().Grid<WebUI.Models.ViewModels.Weather>()
.Name(Constants.GridName).Columns(columns =>
{
columns.Bound(o => o.DictionaryId)
.ClientTemplate("<input type='checkbox' name='" + Constants.GridCheckbox + "' value='<#= TestCaseDictionaryId #>' />")
.HeaderTemplate(
@<text>
<input type="checkbox" title="@Constants.GridCheckAllTitle"
id="@Constants.GridCheckAll" onclick="@(Constants.GridCheckAllOnClick)(this)" />
</text>)
.Width(50)
.HeaderHtmlAttributes(new { style = "text-align:center" });
columns.Bound(o => o.Name);
columns.Bound(o => o.Package);
columns.Command(command => command
.Custom(Constants.GridName + "Add").SendDataKeys(false)
.Text("add")
.Click(Constants.GridName + "Click")
.SendState(false)).Width(100).Title("Actions").HtmlAttributes(new { style = "text-align: center" });
})
.Groupable()
.DataSource(dataSource => dataSource.Ajax()
.Read(read => read.Action("AjaxKendo", "ReadDataFromServer")
.Data(Constants.GridName + "AdditionalData"))
.PageSize(50).Group(group => group.Add(e => e.Package)))
.Events(events => events.DataBound(Constants.GridName + "OnDataBound"))
.Sortable().Pageable(p => p.Refresh(true)).Filterable().Scrollable(scrolling => scrolling.Height(450)));
I have problem with a kendo grid. It is rendered in an window which opens after clicking a button.
Firstly it makes two POST requests.
Secondly in IE an error htmlfile invalid element occurs. Can anybody help me with that?
@(Html.Kendo().Grid<WebUI.Models.ViewModels.Weather>()
.Name(Constants.GridName).Columns(columns =>
{
columns.Bound(o => o.DictionaryId)
.ClientTemplate("<input type='checkbox' name='" + Constants.GridCheckbox + "' value='<#= TestCaseDictionaryId #>' />")
.HeaderTemplate(
@<text>
<input type="checkbox" title="@Constants.GridCheckAllTitle"
id="@Constants.GridCheckAll" onclick="@(Constants.GridCheckAllOnClick)(this)" />
</text>)
.Width(50)
.HeaderHtmlAttributes(new { style = "text-align:center" });
columns.Bound(o => o.Name);
columns.Bound(o => o.Package);
columns.Command(command => command
.Custom(Constants.GridName + "Add").SendDataKeys(false)
.Text("add")
.Click(Constants.GridName + "Click")
.SendState(false)).Width(100).Title("Actions").HtmlAttributes(new { style = "text-align: center" });
})
.Groupable()
.DataSource(dataSource => dataSource.Ajax()
.Read(read => read.Action("AjaxKendo", "ReadDataFromServer")
.Data(Constants.GridName + "AdditionalData"))
.PageSize(50).Group(group => group.Add(e => e.Package)))
.Events(events => events.DataBound(Constants.GridName + "OnDataBound"))
.Sortable().Pageable(p => p.Refresh(true)).Filterable().Scrollable(scrolling => scrolling.Height(450)));