2015-04-23 48 views
0

我试图搜索互联网有人有同样的问题... 我有一个普通的剑道网格,我有多个列标题。我还在网格上分页和分页。 我的问题是,如果我将模型绑定到网格,它可以工作,但每次更改页面或页面大小时它都会重新加载页面。如果我使用数据源,那么多列标题将不会显示其下面的单元格的数据。我的网格代码是这样的:MultiColumn标题与数据源Kendo网格

@Html.Kendo.Grid(Of ModelLayer.SomeType).Name("grdStuff").Columns(Function(column) 
    column.Group(Function(gMedium) 
     gMedium.Columns(Function(mediumColumns) 
     End Function) 
    End Function) 
    column.Bound(Function(x) x.Name) 
    column.Bound(Function(x) x.ConvenName) 
    column.Bound(Function(x) x.ChemicalName) 
    column.Bound(Function(x) x.Description) 
    column.Group(Function(gMaterials) 
     gMaterials.Title("Materials").Columns(Function(matColumn) 
      matColumn.Bound(Function(xMat) xMat.LowAlloy) 
      matColumn.Bound(Function(xMat) xMat.Ferritic) 
      matColumn.Bound(Function(xMat) xMat.Austenitic) 
      matColumn.Bound(Function(xMat) xMat.AusteniticMo) 
     End Function) 
    End Function) 
End Function).Pageable(Function(page) 
    page.PageSizes(True) 
    page.ButtonCount(3) 
End Function).DataSource(Function(datasource) 
    datasource.Ajax.Read(Function(read) read.Action("Read", "controllerName")) 
End Function) 

任何人谁也经历了同样的或者想出了使用数据源的解决方案?

编辑

我想用一个静态模型,而不多头列去香蕉...

+0

难道真的没有人可以帮助吗? – user4626609

回答

0

没关系。原以为我的脚本已经更新了,但是显然它只是更新了其他一些组件:)