zoukankan      html  css  js  c++  java
  • Kendo-UI-Grid-template 模板列不能及时刷新问题

     1  var ShowAlarmColor = new Jfunction(J.use.dataItem)
     2             {
     3                 J.debugger,
     4                 (J.var.colStyle="<div style='background: #eeeeee;margin:0px; padding:0px'> " + J.use.dataItem.CheckStandard + "</div>"),
     5                 new Jswitch(J.use.dataItem.ALARMLEVEL)
     6                 {
     7                        new Jcase(0){ (J.use.colStyle="<div style='background: #eeeeee;margin:0px; padding:0px'> " + J.use.dataItem.CheckStandard + "</div>"),J.@break},
     8                        new Jcase(1){ (J.use.colStyle="<div style='background: #00FF00;margin:0px; padding:0px'> " + J.use.dataItem.CheckStandard + "</div>"),J.@break},
     9                        new Jcase(2){ (J.use.colStyle="<div style='background: #FFFF00;margin:0px; padding:0px'> " + J.use.dataItem.CheckStandard + "</div>"),J.@break},
    10                        new Jcase(3){ (J.use.colStyle="<div style='background: #FFAAFF;margin:0px; padding:0px'> " + J.use.dataItem.CheckStandard + "</div>"),J.@break},
    11                        new Jcase(4){ (J.use.colStyle="<div style='background: #FF3333;margin:0px; padding:0px'> " + J.use.dataItem.CheckStandard + "</div>"),J.@break},
    12                 },
    13                 J.@return(J.use.colStyle),
    14             };
    修改数据源后调用refresh方法 
    grid.GetJQuery().refresh(),

      

  • 相关阅读:
    边学边收 代码
    VS2013无法链接到TFS (转)
    使用Spring MVC创建 REST API
    zookeeper的概念和基础
    使用Spring的HttpInvoker
    使用远程服务
    Spring MVC起步
    使用注解创建切面
    通过切点来选择连接点
    Spring实战之切面编程
  • 原文地址:https://www.cnblogs.com/Snailslost/p/6008672.html
Copyright © 2011-2022 走看看