renderGrid : function() { var it = this; var element = $('#dynamicGrid'), options = element.data('options'); options.gridConfig = {}; var gridConfig = it.currentListSetting.config; $.extend(true,options, { uipk : it.uipk, gridConfig : gridConfig, gridOption:{ userDataOnFooter : true, //altRows : true, gridComplete : it.gridComplete, clientFooter: it.isSum, footerrow: it.isSum, }, loadComplete : it.gridLoadComplete }); it.setDefaultParamPlus(it.currentListSetting, options); it.setSchemeItems(options);//默认显示规则中的项目 it.extendGridOptions(options);//自定义扩展options it.columnsToLowerCase(options)//将列配置name属性值改为小写 it.gridOptions = options;//在前端和服务端缓存配置信息 //console.log("renderGrid:",options); element.dynamicGrid(options).dynamicGrid('renderGrid'); it.initalizeGridEvent();//初始化表格事件 it.afterRenderGrid(options);//表格render完成后操作 }, |