0 Replies Latest reply on Aug 31, 2012 1:19 PM by nataklug

    Question about mx:TextInput and the side of a screen

    nataklug

      Hello guys,

       

       

      I am programming a small software and I need to use a Text Input in a filter but this filter is in a grid table in the right edge of my screen. I need 200 px in this text input and I need it to be showed inside the grid:

       

      filter.PNG

       

      I am using this code:

       

      <elevati:FilterRendererBase creationComplete="list.setFocus();">

                                      <mx:TextInput id="list" width="200" restrict="^\\\&quot;" enter="click_filtrar()"/>                                               

                                      <mx:Script>

                                          <![CDATA[

                                              import mx.collections.ArrayCollection;

                                              private function click_filtrar():void {

                                                  dispatchEvent(new Event('removeFiltro_Event', true));

                                                  var obj:Object = new Object();

                                                  obj.colunaGrid = colunaGrid;

                                                  obj.campo = "vendedor";

                                                  obj.condicional = " LIKE ";

                                                  obj.variavel = " \""  + list.text + "%\" ";

                                                  dataGrid.arrFiltroSql.addItem(obj);

                                                  dataGrid.dispatchEvent(new Event('filtrarGrid', true));

                                                  dispatchEvent(new Event('filtroPersonalizado_Event', true));

                                              }

                                          ]]>

                                      </mx:Script>

                                  </elevati:FilterRendererBase>

       

      Can someone help me making this text input inside the grid?