日期:2014-05-17 浏览次数:20461 次
for (int i = 0; i < 4; i++)
{
Ext.Net.Panel panelCreate = new Ext.Net.Panel("标题"+i.ToString().Trim());
panelCreate.ID = "p" + i.ToString().Trim();
panelCreate.FormGroup = true;
Ext.Net.CheckboxGroup CheckboxGroup1 = new Ext.Net.CheckboxGroup();
CheckboxGroup1.ID = "cg" + i.ToString().Trim();
panelCreate.Items.Add(CheckboxGroup1);
Panel101.Items.Add(panelCreate); //把所有的控件都加到panel101上面去了
for (int j = 5; j < 10; j++)
{
Ext.Net.Checkbox checkBox = new Ext.Net.Checkbox();
checkBox.ID = i.ToString()+j.ToString() ; //itemRad.oper_id.Trim()+item.cid.ToString();
checkBox.BoxLabel = j.ToString()+"{}"+i.ToString();
CheckboxGroup1.Items.Add(checkBox);
}
}