会飞的翔丶 2014-11-06 09:10 采纳率: 0%
浏览 655

求大神帮我解决ext问题,具体内容如下

columnWidth : .30,
layout : 'form',
labelWidth : 0.001,
items : [ {
xtype : 'multiselect', // 列表框
width : 140,
height : 80,
fieldLabel : '',
labelSeparator : '',
allowBlank : true, // 不能为空
name : 'biz_pkg',
id : 'biz_pkg',
store : linestore,
valueField : ["simm","s2t","gsm","all"],
displayField : ["simm","s2t","gsm","all"],
listeners : {
'change' : bizPkgChangeCust
},
anchor : '96%'

这是一个列表,

//列表的数据源
linestore = new Ext.data.Store(
{
proxy : new Ext.data.HttpProxy(
{
url : path
+ "/MultiselectAction.do?method=dealDataClearing&dataclearing=dataclearing" +
"&multiselectOne=multiselectOne"
}),
reader : new Ext.data.JsonReader({},["simm","s2t","gsm","all"]/*[ "op_text", "op_value" ]*/)
});
linestore.load();
linestore.on("load", function() {
var custRecord = Ext.data.Record.create([ {
name : 'simm',//'op_value'
mapping : 'simm'
}, {
name : 's2t',//'op_text'
mapping : 's2t'
}, {
name : 'gsm',
mapping : 'gsm'

    }, {
        name : 'all',
        mapping : 'all'
    }]);

    var myCustRecord = new custRecord({
        op_text : 'ALL',
        op_value : 'All'
    });
    linestore.insert(0, myCustRecord);
    Ext.getCmp('biz_pkg').view.selectRange(0, 0);
})

这是一个数据源, 我后台返回的是{"simm":"SIMM","s2t":"S2T","gsm":"GSM","all":"ALL"}

这个json串, 怎样改才能让其值在页面显示出来,
求大神指教, ext新手。

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
    • ¥15 数据可视化Python
    • ¥15 要给毕业设计添加扫码登录的功能!!有偿
    • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
    • ¥15 微信公众号自制会员卡没有收款渠道啊
    • ¥15 stable diffusion
    • ¥100 Jenkins自动化部署—悬赏100元
    • ¥15 关于#python#的问题:求帮写python代码
    • ¥20 MATLAB画图图形出现上下震荡的线条
    • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘