Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable RadioButton List #283

Open
meister-d opened this issue Sep 26, 2016 · 0 comments
Open

Disable RadioButton List #283

meister-d opened this issue Sep 26, 2016 · 0 comments

Comments

@meister-d
Copy link

Hi BForms Team,
is it possible to disable a RadioButtonList?

I trided something like this but it does not seem to have an effect:

public class RegisterModel
{
    [Required]
    [Display(Name = "Receive email notifications", Description = "Your register...")]
    [BsControl(BsControlType.RadioButtonList)]
    public BsSelectList<NotificationType?> NotificationList { get; set; }

    ...
}

<div class="form-group">
    @Html.BsLabelFor(m => m.NotificationList)
    <div class="input-group">
      @Html.BsSelectFor(m => m.NotificationList,  new { disabled = "disabled" })
      @Html.BsValidationFor(m => m.NotificationList)
    </div>
  </div>

Thanx for having a Look at it

Regards Dumitru

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant