daveaglick / FluentBootstrap

Provides extensions, helper classes, model binding, and other goodies to help you use the Bootstrap CSS framework from .NET code.
http://www.fluentbootstrap.com
MIT License
200 stars 76 forks source link

FluentBootstrap RadioFor() does not check the radio button if the field value is equal to the radio value, contrast to Razor RadioButtonFor() behavior. #30

Closed ryanelian closed 9 years ago

ryanelian commented 9 years ago

The controller

1

The view

2

The result

3

Also, I would like to give you an applause for @Html.Bootstrap().SelectFor() accepting options passed as IEnumerable of KeyValuePair <string,string>. Do you think you can do the same for Radio? (Accepts IEnumerable of string and/or KeyValuePair<string,string> and generates the radio list appropriately)

Thank you in advance and keep up the good work!

daveaglick commented 9 years ago

Thanks - another very good catch. It looks like neither the radio or select are picking up the selected state. It'll probably be next week at the earliest that I get a chance to dig into this, but I'll hopefully be able to get this and the similar select issue as well as your previous one sorted out soon. Once they're all wrapped up I'll push a new release to NuGet.

Keep them coming!

daveaglick commented 9 years ago

This is now resolved in the develop branch. I've also captured the request for better extensions for making sequences of form elements as issue #34