0

我有来自 json 的存储: var store = gridQuestion.getStore();

其中 json--> 数据:[{id:1, value1:a},{id:2, value1:b}…]

我想动态创建复选框。

var valores1 = [];


                  store.each(function(records){

                    valores1=records.data.get('value1');

});

var grid = 
        url: getRelativeURI('uu/yy/grid.do'),
        height: 170,
        page: 6
    });

Ajax.requestJsonData({ url: getRelativeURI('/uu/yy/grid.do'), method: 'GET', scope: this, params: { id: id }, success: function(records) { var store = grid .getStore();

            var adm= new Array();
            for (var i = 0; i < records.total; i++) {


                store.insert(i, aux);
                adm[i] = records.data[i].description;
                var idQuestion = records.data[i].id;



                Ext.each(adm, function(admdatos) {
                    adm.push({id: admdatos, text: admdatos});
                });

                 var options = Ext.create('Ext.Button', {
                    width: 100,
                    height: 44,
                    style: 'margin: 95px 15px 15px 155px;',
                    items: [adm]
                });

我有个问题!!!!

4

0 回答 0