Jan 24, 2013, 9:33 AM
Combobox getvalue return text value in directevent
Hello,
I've download the version 2.1.1.18167 of ext.net.dll because of the version 2.0 i'v already this bug.
I've a fieldcontainer with a combobox
<ext:FieldContainer ID="Fc_Etat_Civil_Ibrunet"
runat="server"
FieldLabel="Etat civil"
Layout="HBoxLayout">
<Items>
<ext:ComboBox ID="Cmb_Etat_Civil" runat="server" Width="150" />
</Items>
</ext:FieldContainer>
In function i fill the combobox with listitem
Ext.Net.ListItem Valeur_Liste = new Ext.Net.ListItem();
Valeur_Liste = new Ext.Net.ListItem();
Valeur_Liste.Mode = ParameterMode.Raw;
Valeur_Liste.Text = Liste_Etat_Civil[Etat_Civil_Courant].Libelle_F;
Valeur_Liste.Value = Liste_Etat_Civil[Etat_Civil_Courant].Val_Num.ToString();
Cmb_Etat_Civil.Items.Add(Valeur_Liste);
but in directenvent when i do this
string Valeur = Cmb_Etat_Civil.SelectedItem.Value;
i'v the text value instead the value, i've seen in another post it's was a bug and i think the correction was in the new version.
Christophe
I've download the version 2.1.1.18167 of ext.net.dll because of the version 2.0 i'v already this bug.
I've a fieldcontainer with a combobox
<ext:FieldContainer ID="Fc_Etat_Civil_Ibrunet"
runat="server"
FieldLabel="Etat civil"
Layout="HBoxLayout">
<Items>
<ext:ComboBox ID="Cmb_Etat_Civil" runat="server" Width="150" />
</Items>
</ext:FieldContainer>
In function i fill the combobox with listitem
Ext.Net.ListItem Valeur_Liste = new Ext.Net.ListItem();
Valeur_Liste = new Ext.Net.ListItem();
Valeur_Liste.Mode = ParameterMode.Raw;
Valeur_Liste.Text = Liste_Etat_Civil[Etat_Civil_Courant].Libelle_F;
Valeur_Liste.Value = Liste_Etat_Civil[Etat_Civil_Courant].Val_Num.ToString();
Cmb_Etat_Civil.Items.Add(Valeur_Liste);
but in directenvent when i do this
string Valeur = Cmb_Etat_Civil.SelectedItem.Value;
i'v the text value instead the value, i've seen in another post it's was a bug and i think the correction was in the new version.
Christophe