Tag: kendo grid

设置Kendo UI网格高度100%的包装器

我知道有一种简单的方法可以通过API设置Kendo UI网格的固定高度,但是为了满足我们的特定需求,我需要让网格在其包装器的整个高度上展开。 使用以下标记结构,我将.wrapper设置为height:600px ,我试图给.k-grid-content height:100%但它不会扩展。 #grid以height:100%扩展到100% height:100%但我也需要扩展内部内容。 我如何实现这一目标? 这是演示JS BIN

如何在Kendo UI Grid中拥有行号

我在asp.net mvc中有kendo网格,我使用服务器包装器。我想要名为“行号”的附加列,它是简单的计数器(1,2,3,…)。 我希望这个计数器永远不会改变客户端排序。 始终第一行是1秒,第2行是……,在“RowNumber”列中 我怎么能在剑道网格中这样做?

未捕获的TypeError:无法在Grid中读取未定义的属性’replace’

我是使用Kendo Grid和Kendo UI的新手。 我的问题是如何解决此错误 Uncaught TypeError: Cannot read property ‘replace’ of undefined 这是我在KendoGrid上的代码 $(“#Grid”).kendoGrid({ scrollable: false, sortable: true, pageable: { refresh: true, pageSizes: true }, dataSource: { transport: { read: { url: ‘/Info/InfoList?search=’ + search, dataType: “json”, type: “POST” } }, pageSize: 10 }, rowTemplate: kendo.template($(“#rowTemplate”).html().replace(‘k-alt’, ”)), altRowTemplate: kendo.template($(“#rowTemplate”).html()) }); 导致错误的行 rowTemplate: kendo.template($(“#rowTemplate”).html().replace(‘k-alt’, ”)), rowTemplate的HTML […]

Kendo UI网格多级层次结构(层次结构的n级)

我正在使用Kendo UI Grid并且当前正确显示父子记录。 然而,事实certificate我实际上需要显示n级与严格的父级。 不是每个记录都会有孩子,但有些会有多个级别。 当前网格代码: var jgrid = $(“#boxesgrid”).kendoGrid({ columns: [ { field: “JobId”, hidden: true }, { field: “PercentComplete”, hidden: true }, { field: “JobStatusId”, hidden: true }, { field: “AppName”, title: “App”, template: “${AppName}”, width: “5%”, editable: false, sortable: false }, { field: “JobName”, title: “Box Name”, width: “17%”, filterable: false }, […]