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

[Solved] caracteristics problems

0 Answers 66 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 10 Apr 2009, 12:42 PM

 

Hello,

I think there is a problem with the insert method...
For example, after this code:

 

 
            ListItem itemddl = new ListItem("ici""1");  
            DropDownList1.Items.Insert(0,itemddl);  
            DropDownList2.Items.Insert(0,itemddl);  
 

 i will get 2 dropdown list with both the itemddl.
but i can't do the samething with radcombobox and radcomboxitem

for example the code:

 RadComboBoxItem item = new RadComboBoxItem("Choose""");  
 RcbFinOcc.Items.Insert(0, item);  
 RcbFinSec.Items.Insert(0, item);  
 RcbFinPri.Items.Insert(0, item); 

doesn't give me 3 radcombox with 3 three items "choose", but just one for the first.

I must make

 

RadComboBoxItem item = new RadComboBoxItem("Choose""");  
RcbFinOcc.Items.Insert(0, item);  
RadComboBoxItem item2 = new RadComboBoxItem("Choose""");  
RcbFinSec.Items.Insert(0, item2);  
RadComboBoxItem item3 = new RadComboBoxItem("Choose""");  
RcbFinPri.Items.Insert(0, item3);  
 
It's unbeleveable beause we are far of the OO best practices. I hope there is a good reason ?

No answers yet. Maybe you can help?

Tags
ComboBox
Asked by
David
Top achievements
Rank 1
Share this question
or