c# - KendoUI Grid ColumnMenu Undefined Columns -


i'm using asp.net mvc wrapper kendoui in project.

i saw grid columnmenu , want use , works menu lists 3 undefined columns.

my grid has 3 columns without model binding , empty title set this

.includeinmenu(false) 

nothing changes, i've tried comment columns nothing changes again.

edit:

the grid code, cleaned readability.

html.kendo().grid(model).name("grid") .datasource(datasource => datasource.ajax().read(read => read.action("", "").data("")).model(model => model.id(m => m.id)).pagesize(50).events(events => events.requeststart(""))) .columns(columns => {     columns.template(o => "").clienttemplate("").htmlattributes(new { @style = "white-space: nowrap;" }).width(100).includeinmenu(false);      columns.template(o => "").width(36).headertemplate(h => "").htmlattributes(new { style = "text-align:center" }).clienttemplate("").includeinmenu(false);      columns.template(o => "").width(36).htmlattributes(new { style = "text-align:center" }).headertemplate("").clienttemplate("").includeinmenu(false);      html.orderedcolumns(columns); }) .selectable() .scrollable(scrolling => scrolling.enabled(true).height(300)) .resizable(resizing => resizing.columns(true)) .reorderable(reorderable => reorderable.columns(true)) .columnmenu() .sortable(sorting => sorting.enabled(true).sortmode(gridsortmode.singlecolumn).allowunsort(true)) .pageable(pageable => pageable.enabled(true).messages(t => t.display("{0:d0} - {1:d0} of {2:d0} items"))) .filterable(filtering => filtering.enabled(false)) .events(e => e.databound("").columnresize("").columnhide("").columnshow("").columnreorder("")) 


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -