kendoUI Grid 如何新增边框

2024-11-27 07:54:11

1、先下载KendoUI的插件包

kendoUI Grid 如何新增边框

2、然后在页面中引用Kendo的css和js

kendoUI Grid 如何新增边框

3、HTML中新建一个Div用来做Grid显示

kendoUI Grid 如何新增边框

4、然后调用KendUI Grid的函数加载Grid

kendoUI Grid 如何新增边框

5、后台返回一个{data:[]}这样的JSON数组

kendoUI Grid 如何新增边框

6、运行之后发现Grid是不带边框的

kendoUI Grid 如何新增边框

7、最后加上这句代码解决$(funct坡纠课柩ion () { setInterval(function () { $(".k-grid-content table tr td").css("border-bottom", "1px solid #dee2e6"); }, 100); });

kendoUI Grid 如何新增边框
猜你喜欢