View Full Version : [CLOSED] [2.0] ComboBox HiddenName
Timothy
Jun 13, 2012, 9:56 PM
Hello,
Just curious to find out what happened to the hiddenname property for the combobox? I was using that to submit the value selected instead of the text.
Cheers,
Timothy
Vladimir
Jun 13, 2012, 10:00 PM
Please use ValueHiddenName
Timothy
Jun 15, 2012, 7:32 PM
Please use ValueHiddenName
Thanks vladsch, I am using ValueHiddenName and this is what is being submitted as the value:
[{"value":"English","text":"English","index":0}]
b.Add(Html.X().ComboBox()
.ID("drpLanguage")
.AllowBlank(false)
.AnchorHorizontal("100%")
.Editable(false)
.FieldLabel("Default Language")
.ForceSelection(true)
.TypeAhead(false)
.ValueHiddenName("Customer.Language")
);
Cheers,
Timothy
Vladimir
Jun 15, 2012, 7:40 PM
There are two options:
- Use SimpleSubmit="true" to submit value only
- Use ComboBoxBase.ParseSelectedItems(state) to parse submitted json object
Timothy
Jun 15, 2012, 7:49 PM
Thanks vladsch! You can mark this one closed.
Powered by vBulletin® Version 4.2.3 Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.