You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
Regards Dumitru
The text was updated successfully, but these errors were encountered: