1 Reply Latest reply: Nov 19, 2012 3:20 AM by Supreet R RSS

    Set textAlign property of ComboBoxGridItemEditor in actionscript

    Supreet R

      Hello,

       

           How to set the textAlign property of ComboBoxGridItemEditor in ActionScript ?

           In mxml we can set directly as shown below

                <s:ComboBoxGridItemEditor id="cbgie" dataProvider="{combodp}" textAlign="center" />

           but how to perform the same action using ActionScript ?

       

      Thank you

      Supreet R

        • 1. Re: Set textAlign property of ComboBoxGridItemEditor in actionscript
          Supreet R Community Member

          Hello,

           

          textAlign property of ComboBoxGridItemEditor can be set in ActionScript as shown below,

          if the id of ComboBoxGridItemEditor is "cbgie",

          then the textAlign property can be set as follows

             

                cbgie.setStyle("textAlign","right");

           

                                   or

              

               var cbgie:ComboBoxGridItemEditor = new ComboBoxGridItemEditor();

                cbgie.setStyle("textAlign","right");