Skip to content

Disable RadioButton List #283

Description

@meister-d

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions