Hi,
Here is our scenario. We have a screen where users need to add their comment in a text editor. What we would like to achieve is that the color is fixed based on the user role.
We have tried the following code but without any luck:
RadEditor tbOpmerkingen = editedItem.FindControl("tbOpmerkingen") as RadEditor;
tbOpmerkingen.ForeColor = System.Drawing.Color.Blue;
and
tbOpmerkingen.ContentAreaCssFile = "~/App_Themes/easecc/Test.css";
css looks like
.RadEContent
{
color: Blue !important;
}
and
Literal styleSheet = (Literal)this.Master.FindControl("styleSheet");
styleSheet.Text = ".RadEContent{color: Blue !important;}";
with in the masterpage header section
<style>
<asp:Literal id="styleSheet" runat="server"></asp:Literal>
</style>
Any help on this issue is appreciated.
Ron
Here is our scenario. We have a screen where users need to add their comment in a text editor. What we would like to achieve is that the color is fixed based on the user role.
We have tried the following code but without any luck:
RadEditor tbOpmerkingen = editedItem.FindControl("tbOpmerkingen") as RadEditor;
tbOpmerkingen.ForeColor = System.Drawing.Color.Blue;
and
tbOpmerkingen.ContentAreaCssFile = "~/App_Themes/easecc/Test.css";
css looks like
.RadEContent
{
color: Blue !important;
}
and
Literal styleSheet = (Literal)this.Master.FindControl("styleSheet");
styleSheet.Text = ".RadEContent{color: Blue !important;}";
with in the masterpage header section
<style>
<asp:Literal id="styleSheet" runat="server"></asp:Literal>
</style>
Any help on this issue is appreciated.
Ron