2 Replies Latest reply on May 4, 2011 4:34 PM by drkstr_1

    list control using array is the dataprovider

    JSujubala-nZao4n

      Hi ,

      I am storing some value to an array then i provide this array to my list control dataprovider, but there is no result, please help me

      my coding is

      listArr.push({listName:finatString}); 

      <mx:List width="200" dataProvider="{listArr}"
                       editable="true"
                       labelField="
      listName"               
                       id="listImpl"
                       selectionColor="#CCCCFF" />

       

       

      my another way is

      public function labelNameFun(labelName:Object):String

      {   
           return labelName.listName;

      }
                      

      <mx:List width="200" dataProvider="{listArr}"
                       editable="true"
                       labelFunction="labelNameFun"               
                       id="listImpl"
                       selectionColor="#CCCCFF" />

      but no answer please help me