DmitryEfimenko / TwitterBootstrapMvc

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

CheckboxListFor Support for Suboptions for each checkbox #444

Closed bsunilkumar closed 7 years ago

bsunilkumar commented 7 years ago

I have a requirement to display suboptions(with radiobuttons or checkboxes) Can you please let me know how i can achieve this requirement

Iam attaching the screenshot.

checkbox-suboptions

Thanks, Sunil Kumar B

DmitryEfimenko commented 7 years ago

What have you tried?

bsunilkumar commented 7 years ago

I've tried rendering the checkboxes using CheckBoxListFor and using the viewmodel to populate values. Now iam struck in rendering the suboptions under each checkbox.

Is there any other way to render the suboptions for each checkbox using form.FormGroup().CheckBoxListFor()?

DmitryEfimenko commented 7 years ago

no, CheckBoxListFor is for a simple case of list of checkboxes. Your requirements are quite custom and will require some custom code.