gpt4 book ai didi

javascript - 在 jqx.dataAdapter 中绑定(bind)外部源数据字段时浏览器崩溃

转载 作者:行者123 更新时间:2023-11-28 09:18:54 33 4
gpt4 key购买 nike

我正在尝试使用 jQWidgets (jqxGrid) 构建一个网格,其中有一列使用 jqx.dataAdapter 显示来自外部数据源的值,但当我尝试调用 dataBind() 方法时,浏览器崩溃。

这是我的(浏览器崩溃!)jsfiddle: http://jsfiddle.net/qYyRs/6/

部分代码:

            var Area_DataSource = {
datatype: 'array',
localdata: Area_Data,
async: false,
datafields: [{
name: 'Id'
}, {
name: 'Name'
},{
name: 'PlantId'
},{
name: 'PlantName',
value: 'PlantId',
values: {
value: 'Value', // the problematic field
name: 'Name',
source: Plant_DataAdapter.records
}
}]
};
var Area_DataAdapter = new $.jqx.dataAdapter(Area_DataSource);

Area_DataAdapter.dataBind(); // booom!

来自 jQWidgets 网站的基本示例: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/index.htm#demos/jqxgrid/gridkeyvaluescolumnwitharray.htm

最佳答案

这是一个已确认的问题:

http://www.jqwidgets.com/community/topic/browser-crashes-foreign-datafield-in-jqx-dataadapter/

"We debugged the issue and confirm it. It will be resolved in jQWidgets 2.8.

Best Regards, Peter Stoev

jQWidgets Team http://www.jqwidgets.com"

关于javascript - 在 jqx.dataAdapter 中绑定(bind)外部源数据字段时浏览器崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15276364/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com