| And how to collect the checked items |
| Aldo Lin Lin posted at Monday, September 08, 2008 12:56 AM |
Asp.net vb.net
Can I add check box in radComboBox, if Yes how to add
And how to collect the checked items |
 |
|
|
| |
hmm... |
| egg egg replied to Aldo Lin Lin at Monday, September 08, 2008 1:03 AM |
First of all I am not sure what you are trying to achieve on this and your requirement...
The basic purpose of checkboxes and radiolist are different the former being for selection of any of those and the later one for only one among many...
Hence, this is not possible on the radiocombobox to have checkbox... |
 |
| |
Answer to Get Selected Values From a CheckBoxList in C# |
| Binny ch replied to Aldo Lin Lin at Monday, September 08, 2008 1:07 AM |
// Get Values from CheckBoxList
String values = "";
for (int i=0; i< cbl.Items.Count; i++)
{
if(cbl.Items[i].Selected)
{
values += cbl.Items[i].Value + ",";
}
}
values = values.TrimEnd(','); |
 |
| |
datagrid with checkbox |
| gnanam gnanam replied to Aldo Lin Lin at Monday, September 08, 2008 3:05 AM |
checkbox ch;
int count;
for(int i=0;i<dggrid.items.count;i++)
{
ch = dggrid.items[i].findcontrols("checkItem");
if(ch == checked)
{
count =count+1;
}
}
respone.write(count);
checkItem --->Checkbox id |
 |
| |
|
|