asp.net mvc 3 - No div with content is present in kendo grid -


i'm trying stylize grid coworker putting together. it's getting created (note: deleted of columns bound save space):

@(html.kendo().grid<librarydetailviewmodel>()           .name("mygrid")           .columns(columns =>               {                   columns.bound(l => l.libraryid).title("library").clienttemplate("\\#= libraryprepname \\#").editortemplatename("libraryprepsdropdownlist");                   columns.bound(l => l.modifiedon).title("last updated").clienttemplate("\\#=modifiedlabel\\# ").width("20%");                    columns.command(command => {                                          command.edit();                                          command.destroy();                                      }).width(175);               })            .editable(editable => editable.mode(grideditmode.inline))           .datasource(datasource => datasource                                         .ajax()                                         .pagesize(20)                                         .serveroperation(true)                                         .read(read => read.url("api/source/#=id#/libraries"))                                         .sort(sort => sort.add("modifiedon").descending())                                         .model(model =>                                         {                                             model.id(l => l.id);                                             model.field(l => l.modifiedon).editable(false);                                             model.field(l => l.libraryprepid).editable(true);                                         })           )           .pageable()           .sortable()           .toclienttemplate()           ) 

so kendo grid gets rendered when @ it. however, there no kendo-grid-content div actual content of grid. i'm not sure why. in other pages of our site, grid rendered client side, not using mvc syntax (this 1 rendered server side), have div class of kendo-grid-content use stylize grid. 1 not have it. have ideas why? in advance.

the k-grid-content div used if grid scrollable.

the default value scrollable using javascript api true see in documentation.

but asp.net mvc wrappers uses default value false scrollable need configure grid scrollable() method:

@(html.kendo().grid<librarydetailviewmodel>()           .name("mygrid")           //..           .scrollable()           .toclienttemplate()           ) 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -