PDA

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



praveencat123
Nov 07, 2014, 11:13 AM
HI

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
Praveen

Daniil
Sep 07, 2015, 12:04 PM
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).