This is a migrated thread and some comments may be shown as answers.

Help mee 2 OR 3 combobox checked item problem

2 Answers 49 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
salih
Top achievements
Rank 1
salih asked on 23 Apr 2012, 08:14 PM
hi ;
this sample
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx
RadComboBox2 CheckBoxes="True" no problem but
button_click RadComboBox2 checkeditemcount =0 why help me

2 Answers, 1 is accepted

Sort by
0
Accepted
Kalina
Telerik team
answered on 24 Apr 2012, 07:22 AM
Hello salih,

As far as I understand - you are trying to use the CheckBoxes along with Load On Demand feature.
I am afraid that this is not a supported scenario - please find more details about this topic here.

I am suggesting you test the RadComboBox behaviour under different configurations at this online demo.

Regards,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
salih
Top achievements
Rank 1
answered on 24 Apr 2012, 12:55 PM
In the Project which can be reached by the link below, 
Comboboxes’ checked property values are made TRUE  and I embedded this code after the button;
http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx
Although radcombobox2’s items are chosen, the combobox.checkeditems count still seems “0(null)”.
private static void ShowCheckedItems(RadComboBox comboBox, Label label)
       {
           var sb = new StringBuilder();
           var collection = comboBox.CheckedItems; ----- count 0
 
 
           foreach (var item in collection)
               sb.Append(item.Text + "<br />");
 
 
           label.Text = sb.ToString();
       }
 
 
       protected void Button1_Click(object sender, EventArgs e)
       {
           ShowCheckedItems(RadComboBox2, itemsClientSide);
       }

Tags
ComboBox
Asked by
salih
Top achievements
Rank 1
Answers by
Kalina
Telerik team
salih
Top achievements
Rank 1
Share this question
or