Is there an example of how to show a Combo Box item, say "Admin" only when a user acting in the role of administrator is currently logged in?
Thanks for help and fast answer ! `^
2 Answers, 1 is accepted
0
Accepted
Kalina
Telerik team
answered on 06 Nov 2012, 11:49 AM
Hi Nikola,
You can populate the RadComboBox with all Roles in this way:
if (Roles.IsUserInRole(RadComboBox1.SelectedValue))
{
// perform some actions here...
}
}
Regards,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.