jqwidgets jqxGrid报错:The data is still loading. When the data binding is completed, the Grid raises the ‘bindingcomplete’ event. Call this function in the ‘bindingcomplete’ event handler.
解决方案:查看代码中对应的Grid 是否被初始化了两遍,一般业务很难遇到这个问题,每次点击查询的时候就要匹配对应的source 和column,然而问题就在于,每一次我重新赋值之后,又初始化了一遍grid,导致第一次用的时候不报错,当换了source和column之后立马就报上面的错了!
最终解决方案:页面加载时初始化(或者js控制新建的Grid,保证grid的id在当前页不能重复,并且该只能初始化一次),如果中间有业务需要更换配置文件;可用下面的方法:$(’#jqxGrid’).jqxGrid(‘column’,[{新的column数组}]);之后在调用$(’#jqxGrid’).jqxGrid(‘updatebounddata’);即可
The data is still loading. When the data binding is completed, the Grid raises the
最新推荐文章于 2023-03-01 17:21:42 发布