dhtmlxgrid中subgrid页面的问题
我第一次打开+时显示成这样
第二次打开的时候就正常了,求大神赐教
代码是这样的:
dhxGrid = new dhtmlXGridObject("grid_body");
dhxGrid.setImagePath("${ctx}/dhtmlx/imgs/");//定义图片读取路径
dhxGrid.enableProgress();
dhxGrid.init();//初始化
dhxGrid.clearAndLoad("${ctx}/SAttendance.doaction=getAttListByYear&v_year="+year,"json");
dhxGrid.attachEvent("onSubGridCreated",function(subgrid,rId,rInd){
subgrid.init();
subgrid.clearAndLoad("${ctx}/SAttendance.do?action=getAttListByUserMonth&v_year="+year+"&v_user="+id+"&v_year_not_sign="+abse,"json");
return false; // block default behavior
});(我觉得多余的代码没关系,就没写上来,怕你们看到吓到了——!)
------解决方案--------------------我在项目中也要实现你那效果,但是还是没弄出来呀