View Full Version : [CLOSED] Changing the TextField background color in ext.net 2.5

Nov 07, 2014, 10:13 AM

Recently we have purchased ext.net 2.5 version and we started to migrated the controls

While we migrating ext.net 1.7 controls to ext.net 2.5 we are facing the the following issue

1) How to change the background color for textfiled (ext.net 2.5) from code behind, in previous version we are using like the below code

string strCssRed = "color:White;background:#FF0000;padding:2px;text-align:center; font-size: 8.5pt;";
TBStatusNetRde.StyleSpec = strCssRed;

its not working in the latest version, my question is how to change the background color of textField from codebehind...

Regards & Thanks

Sep 07, 2015, 11:04 AM
Hi @praveencat123,

Please try with a TextField's FieldStyle instead of StyleSpec.

P.S. The thread has been moved to the Premium 2.x forum and answered due to this report (http://forums.ext.net/showthread.php?60046).