I would like to change the Visible property dynamically depending on the role. For this reason, I inputed the following string for Blazor code generation in Radzen 's Expression.
Visible :[Expression]
${Security.IsInRole(new string[] { "Administrator", "Manager"} )}
This input will result in an error at build time.
Does anyone know how to solve this?
In Angular, the following expression seems to be used, but in Blazor, it resulted in an error.
${Security.IsInRole(['Administrator','Manager'])}
Also, if I enter the following code directly in the IDE, I can build it, but it seems that Radzen IDE does not recognize it correctly, and the value of the input is corrupted in editing it.
@Security.IsInRole(new string[] { "Administrator", "Manager"} )