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

htmlfile invalid element

0 Answers 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mic
Top achievements
Rank 1
Mic asked on 04 Nov 2012, 10:48 AM
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)));

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Mic
Top achievements
Rank 1
Share this question
or