Nov 05, 2012, 8:48 AM
[CLOSED] ComboBoxFor doesn't show description after page loads ...
Hi,
how can I get the the ComboboxFor get to show the corresponding
description values.
In this case, 1 -> M, 0->W ?
Regards,
Holger
how can I get the the ComboboxFor get to show the corresponding
description values.
In this case, 1 -> M, 0->W ?
Regards,
Holger
Html.X().ComboBoxFor(m => m.ES_VERS_GESCHLECHT)
.ID("combo_ES_VERS_GESCHLECHT")
.Width(40)
.LabelAlign(LabelAlign.Top)
.FieldLabel("Geschlecht")
.Editable(true)
.Items(l1items =>
{
l1items.Add(
Html.X()
.ListItem()
.Text("M")
.Value("1")
);
l1items.Add(
Html.X()
.ListItem()
.Text("W")
.Value("0")
);
})
Last edited by geoffrey.mcgill; Nov 08, 2012 at 3:30 AM.
Reason: [CLOSED]