Dec 21, 2012, 1:49 PM
[CLOSED] ComboBox load value
Hi all,
I want to know what is the best way to load the combo from code behind in v.2 .
In fact, in v.1, I use the following code:
In v.2 , I use the following code:
Best Regards
I want to know what is the best way to load the combo from code behind in v.2 .
In fact, in v.1, I use the following code:
this.comboBoxCompanies.Value = employee.getCompanyId;
where employee.getCompanyId is an integer.In v.2 , I use the following code:
this.comboBoxCompanies.SelectedItems.Add(new Ext.Net.ListItem { Value = "" + employee.getCompanyId });
this.comboBoxCompanies.UpdateSelectedItems();
The two previous code work good, but I'm wonder if there is a way in v.2 to load data in the same way as in v.1Best Regards
Last edited by Daniil; Dec 25, 2012 at 10:25 AM.
Reason: [CLOSED]