DmitryEfimenko / TwitterBootstrapMvc

Fluent implementation of ASP.NET-MVC HTML helpers for Twitter Bootstrap.
Apache License 2.0
224 stars 79 forks source link

RadioButtonList #342

Closed vanithav closed 9 years ago

vanithav commented 9 years ago

I want to add a simple radio button list with two options Expand and Collapse. The values do not come from model. I just want to add in view.

How do i achieve this?

DmitryEfimenko commented 9 years ago

The first parameter the helper takes is the list of objects to iterate through. So just create a List<KetValuePair<int, string>> on the fly, in your view, and go from there.