AJax技术

dhtmlx中的grid加载不已数据

字号+ 作者:H5之家 来源:H5之家 2018-01-23 18:06 我要评论( )

dhtmlx中的grid加载不了数据本帖最后由 xujiawei0726 于 2012-11-21 16:21:34 编辑 我是一个初学者,求大神帮我看下这data为什么加载不了vardata={rows:[{id:1,d

dhtmlx中的grid加载不了数据
本帖最后由 xujiawei0726 于 2012-11-21 16:21:34 编辑 我是一个初学者,求大神帮我看下这data为什么加载不了
<script type="text/javascript">
var data={rows:[{ "id":"1",data:["烟雾测试","金华尾气检测站","423cvhjj","1233676uvy894",08,"2011-1-1","2011-1-1","运行"]},
                { "id":"2",data:["烟雾测试","金华尾气检测站","423cvhjj","1233676uvy894",04,"2011-1-1","2011-1-1","运行"]},
                { "id":"3",data:["烟雾分析仪","义乌尾气检测站","423cvhjj","1233676uvy894",02,"2011-1-1","2011-1-1","运行"]},
                { "id":"4",data:["烟雾分析仪","永康尾气检测站","423cvhjj","1233676uvy894",05,"2011-1-1","2011-1-1","运行"]},
                { "id":"5",data:["烟雾测试","永康尾气检测站","423cvhjj","1233676uvy894",01,"2011-1-1","2011-1-1","故障"]},
                { "id":"6",data:["烟雾分析仪","义乌尾气检测站","423cvhjj","1233676uvy894",01,"2011-1-1","2011-1-1","故障"]},
                { "id":"7",data:["烟雾分析仪","武义尾气检测站","423cvhjj","1233676uvy894",03,"2011-1-1","2011-1-1","故障"]},
                { "id":"8",data:["烟雾测试","永康尾气检测站","423cvhjj","1233676uvy894",01,"2011-1-1","2011-1-1","故障"]},
                { "id":"9",data:["烟雾分析仪","义乌尾气检测站","423cvhjj","1233676uvy894",01,"2011-1-1","2011-1-1","故障"]},
                { "id":"10",data:["烟雾分析仪","武义尾气检测站","423cvhjj","1233676uvy894",03,"2011-1-1","2011-1-1","维护"]},
                { "id":"11",data:["烟雾测试","永康尾气检测站","423cvhjj","1233676uvy894",01,"2011-1-1","2011-1-1","维护"]},
                { "id":"12",data:["烟雾分析仪", "义乌尾气检测站","423cvhjj","1233676uvy894",01,"2011-1-1","2011-1-1","维护"]},
                { "id":"13",data:["烟雾分析仪","武义尾气检测站","423cvhjj","1233676uvy894",03,"2011-1-1","2011-1-1","故障"]},
                { "id":"14",data:["烟雾分析仪","义乌尾气检测站","423cvhjj","1233676uvy894",01,"2011-1-1","2011-1-1","故障"]},
                { "id":"15",data:["烟雾分析仪","武义尾气检测站","423cvhjj","1233676uvy894",03,"2011-1-1","2011-1-1","维护"]}
                ]};
$(function(){
renderGrid();
var t = new dhtmlXCalendarObject(["CAR_S_DATE","CAR_E_DATE","START_DATE","END_DATE"]);
});
 function renderGrid(){
  dhxGrid = new dhtmlXGridObject("grid_body");
  dhxGrid.setImagePath("${ctx}/plugin/dhtmlx/imgs/");
  dhxGrid.setSkin("dhx_skyblue");
  dhxGrid.setHeader("设备名称,站点名称,设备型号,设备类型,所属检测线,申请时间,标定有效期,状态");//设置头标题
  dhxGrid.setInitWidthsP("12,12,12,12,12,12,12,20");
  dhxGrid.setColAlign("center,center,center,center,center,center,center,center");
  dhxGrid.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro");
  dhxGrid.setColSorting("str,str,str,str,int,str,str,str"); 
  dhxGrid.init();
  dhxGrid.setPagingTemplates("[prevpages:&lt;:&nbsp;] [currentpages:&nbsp;] [nextpages:&gt;:&nbsp;]","当前显示第<b>[from]-[to]</b>条,共<b>[total]</b>条");/

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • jquery中的ajax同步和异步详解,jqueryajax

    jquery中的ajax同步和异步详解,jqueryajax

    2017-12-19 15:36

  • AJAX局部刷新技术在网络考试系统中的应用

    AJAX局部刷新技术在网络考试系统中的应用

    2017-12-08 09:04

  • Jquery easyui datagrid清除缓存使用技巧

    Jquery easyui datagrid清除缓存使用技巧

    2017-11-19 12:29

  • Ajax技术与RIA在网络办公自动化系统中的应用分析

    Ajax技术与RIA在网络办公自动化系统中的应用分析

    2017-11-14 16:05

网友点评