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

DropdownListFor default is inline Display:none?

0 Answers 126 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Pat Tormey
Top achievements
Rank 1
Pat Tormey asked on 05 Sep 2012, 12:25 PM
Ok so a real simple DropdownFor MVC 4 Razor VS 2012.

   <div class="editor-field">
        <h3>Married</h3>
        @(Html.Kendo().DropDownListFor(model => model.MaritalStatus)
          .Name("MaritalStatus")
          .BindTo(new List<string>() {
              "Married",
              "Single",
              "Divorced",
              "Separated",
              "Committed Partnership"
          }))
    </div>

Only the word Married is displayed because it seems the inline style is defaulting to display, inline:none

See attached for the screen shots.

Any thoughts?

Pat NH USA

Anybody else notice working with JavaScript is a lot like Fortran 4 with punch cards only not as easy to debug?

No answers yet. Maybe you can help?

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