Note that there are some explanatory texts on larger screens.

plurals
  1. POKendoUI Grid ColumnMenu Undefined Columns
    primarykey
    data
    text
    <p>I'm using ASP.NET MVC Wrapper for KendoUI in my project.</p> <p>I saw Grid ColumnMenu and I want to use it and everything works but the menu lists 3 undefined columns.</p> <p>My grid has 3 columns without model binding and with an empty title but I set this</p> <pre><code>.IncludeInMenu(false) </code></pre> <p>Nothing changes, so I've tried to comment those columns but nothing changes again.</p> <p>EDIT:</p> <p>The Grid Code, I cleaned it for readability.</p> <pre><code>Html.Kendo().Grid(Model).Name("Grid") .DataSource(dataSource =&gt; dataSource.Ajax().Read(read =&gt; read.Action("", "").Data("")).Model(model =&gt; model.Id(m =&gt; m.ID)).PageSize(50).Events(events =&gt; events.RequestStart(""))) .Columns(columns =&gt; { columns.Template(o =&gt; "").ClientTemplate("").HtmlAttributes(new { @style = "white-space: nowrap;" }).Width(100).IncludeInMenu(false); columns.Template(o =&gt; "").Width(36).HeaderTemplate(h =&gt; "").HtmlAttributes(new { style = "text-align:center" }).ClientTemplate("").IncludeInMenu(false); columns.Template(o =&gt; "").Width(36).HtmlAttributes(new { style = "text-align:center" }).HeaderTemplate("").ClientTemplate("").IncludeInMenu(false); Html.OrderedColumns(columns); }) .Selectable() .Scrollable(scrolling =&gt; scrolling.Enabled(true).Height(300)) .Resizable(resizing =&gt; resizing.Columns(true)) .Reorderable(reorderable =&gt; reorderable.Columns(true)) .ColumnMenu() .Sortable(sorting =&gt; sorting.Enabled(true).SortMode(GridSortMode.SingleColumn).AllowUnsort(true)) .Pageable(pageable =&gt; pageable.Enabled(true).Messages(t =&gt; t.Display("{0:d0} - {1:d0} of {2:d0} items"))) .Filterable(filtering =&gt; filtering.Enabled(false)) .Events(e =&gt; e.DataBound("").ColumnResize("").ColumnHide("").ColumnShow("").ColumnReorder("")) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload