我定义了一个数据源,返回的是json数据
var radStore1 = new Ext.data.JsonStore({
root:'results',
fields:['seneceid','senecefact1'],
method:'post',
url:'${ctx}/discretion/discretiontempale!querySencefact1.action?sid='+sid+'&caseid='+caseid,method:'post',
autoLoad:true
}); /// 下面的是我写的RadioGroup代码
xtype: 'fieldset',
id : 'smpradio1',
title: '<span class="fs_flag">*</span> 情节一',
autoHeight: true,
hideLables: true,
items:[{
xtype: 'ux-radiogroup',
name : 'senecefact1', //名称
horizontal: true, //值为true则表示Radio选项水平排列,false则表示垂直排列,默认值为false
// 下面的代码是我乱写的, 没保存,显示‘senecefact1’,我就是不知道这里怎么显示我后台获取的JSON数据
store: radStore1,
radios: [{
value: 'seneceid',
boxLabel: 'senecefact1'
}]
}]
求Ext 达人解答我的难题,谢谢!
var radStore1 = new Ext.data.JsonStore({
root:'results',
fields:['seneceid','senecefact1'],
method:'post',
url:'${ctx}/discretion/discretiontempale!querySencefact1.action?sid='+sid+'&caseid='+caseid,method:'post',
autoLoad:true
}); /// 下面的是我写的RadioGroup代码
xtype: 'fieldset',
id : 'smpradio1',
title: '<span class="fs_flag">*</span> 情节一',
autoHeight: true,
hideLables: true,
items:[{
xtype: 'ux-radiogroup',
name : 'senecefact1', //名称
horizontal: true, //值为true则表示Radio选项水平排列,false则表示垂直排列,默认值为false
// 下面的代码是我乱写的, 没保存,显示‘senecefact1’,我就是不知道这里怎么显示我后台获取的JSON数据
store: radStore1,
radios: [{
value: 'seneceid',
boxLabel: 'senecefact1'
}]
}]
求Ext 达人解答我的难题,谢谢!
解决方案 »
- 请教js高手jQuery的jQuer.fn.extend内部实现机制是什么样的
- 一个函数写法理解难题
- 关于javascript控制播放器的问题
- 下面的代码将标签中 my属性值放入标签innerText中,提示错误,是什么原因??
- 如何点击一行,得到该行文本框里的值,行的背景图片改变.
- **********请问关于js操作table的问题,马上揭贴************
- 寻找免费Javascript混淆器
- 请问富文本编辑器UEditor怎么解析出来数据库中保存的值呢?
- 如何使用javascript代码,实现两个时间的大小比较?
- jquery 获取当前table所点击的列
- javascript 单击一个复选框实现所的有复选框全部选中功能的一些问题
- 请问jquery中如何给通过JS添加的元素,添加事件?
如果你非要获取store 也得radStore1.load()一下
如果radio内容需要后台交互的话 那么得发起ajax请求 在回调函数中动态的用js往smpradio1的items中加
你的意思是说这里用store是没有用的, 要动态的创建一个radio,然后再加载到raioGroup中去吗?
大侠,麻烦你把示例代码发给我,我主要是不知道怎么创建radio ,再添加到radios中