[CLOSED] Changing the TextField background color in ext.net 2.5

  1. #1

    [CLOSED] Changing the TextField background color in ext.net 2.5

    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
    Last edited by Daniil; Sep 15, 2015 at 7:54 PM. Reason: Please use [CODE] tags, [CLOSED]
  2. #2
    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.

Similar Threads

  1. Replies: 3
    Last Post: Jan 24, 2014, 3:30 PM
  2. [CLOSED] Changing Chart Background Color
    By cwolcott in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 22, 2013, 10:55 AM
  3. [CLOSED] Changing the background color of htmleditor
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 18, 2012, 5:41 PM
  4. Changing TreePanel background color
    By wexman in forum 1.x Help
    Replies: 3
    Last Post: Apr 06, 2011, 2:35 PM
  5. [CLOSED] Changing background color of TabPanel on the fly
    By rmelancon in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 07, 2010, 12:23 PM

Tags for this Thread

Posting Permissions