Change the Appearance of a Infor CRM (formerly Saleslogix) Read Only TextBox Web Control

In the Infor CRM (formerly Saleslogix) web client, a read only control has a css style applied to it to make the background appear grey.  This can be overriden via server side code by adding something like this on the form load event of a quick from.

MyControl.Style[“background-color”] = System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.FromArgb(255,105,105)).ToString() + “!important”;

The key thing here is appending on the “!important” string to the end.  This will cause the style applied from the CSS class to be overriden.  Without this your attempt to set the color would be negated once the form opens and the CSS was applied.

ABOUT THE AUTHOR

Kris Halsrud

Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

Submit a Comment

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Join our mailing list to receive the latest Infor CRM (Saleslogix) news and product updates!

You have Successfully Subscribed!