-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hi BForms Team
is it possible to disable ("grey out") an Item form a BsControlType.DropDownList. If I set the Disabled Property on the BsSelectListItem nothing happens when the Control is rendered:
private BsSelectList<string> GetRolesDropDown(Admin admin)
{
BsSelectList<string> rolesddl = new BsSelectList<string>();
foreach(AdminRole r in AUDMServiceContext.Instance.Roles)
{
BsSelectListItem tmpItem = new BsSelectListItem
{
Text = r.Name,
Value = r.Id
};
if (admin.Roles.FirstOrDefault(role => role.Id == r.Id) != null)
tmpItem.Disabled = true;
rolesddl.Items.Add(tmpItem);
}
return rolesddl;
}
Regards Dumitru
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels