logo

And how to collect the checked items (Visual Studio .NET)
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

Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0
hmm...
egg egg provided a rated reply to Aldo Lin Lin on 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...

Reply    Reply Using Power Editor
Having around 7 years of experience in designing and implementing software products including windows, console, service oriented and ofcourse predominantly on Web with .Net, XML, Javascript, Oracle, SQL Server
  Rank Winnings Points
February 5 $94.00 116
January 4 $100.00 362

Answer to Get Selected Values From a CheckBoxList in C#
Binny ch provided a rated reply to Aldo Lin Lin on 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(',');
Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0

datagrid with checkbox
gnanam gnanam provided a rated reply to Aldo Lin Lin on 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

Reply    Reply Using Power Editor
  Rank Winnings Points
February 0 $0.00 0
January 0 $0.00 0


Didn't Find The Answer You Were Looking For?

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum

If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application.
Ask Question In Chat Chaos










  $1000 Contest    [)ia6l0 iii - $228  |  Jonathan VH - $161  |  Huggy Bear - $135  |  F Cali - $95  |  egg egg - $94  |  more Advertise  |  Privacy  |   (c) 2010