[Csharp] foreground method:
Var items = Ext. getCmp ("CheckboxGroup1"). items;
For (var I = 0; I <items. length; I ++ ){
If (items. itemAt (I). checked ){
}
}
Background method:
Ext. Net. CheckboxGroup mygroup1 = new CheckboxGroup ();
Mygroup1 = (Ext. Net. CheckboxGroup) this. form1.FindControl ("ItemTypeGroup ");
String itemtype = string. Empty;
For (int I = 0; I <mygroup1.Items. Count; I ++)
{
If (mygroup1.Items [I]. Checked)
{
String tmp;
If (mygroup1.Items [I]. BoxLabel = "non-tradables ")
{
Tmp = "'" + "N" + "'";
}
Else
{
Tmp = "'" + "Y" + "'";
}
Itemtype = tmp + "," + itemtype;
}
}
X. Msg. Alert ("xx", itemtype. Substring (0, itemtype. Length-1). Show ();
Foreground method:
Var items = Ext. getCmp ("CheckboxGroup1"). items;
For (var I = 0; I <items. length; I ++ ){
If (items. itemAt (I). checked ){
}
}
Background method:
Ext. Net. CheckboxGroup mygroup1 = new CheckboxGroup ();
Mygroup1 = (Ext. Net. CheckboxGroup) this. form1.FindControl ("ItemTypeGroup ");
String itemtype = string. Empty;
For (int I = 0; I <mygroup1.Items. Count; I ++)
{
If (mygroup1.Items [I]. Checked)
{
String tmp;
If (mygroup1.Items [I]. BoxLabel = "non-tradables ")
{
Tmp = "'" + "N" + "'";
}
Else
{
Tmp = "'" + "Y" + "'";
}
Itemtype = tmp + "," + itemtype;
}
}
X. Msg. Alert ("xx", itemtype. Substring (0, itemtype. Length-1). Show ();