3 Replies Latest reply on Mar 17, 2010 3:31 AM by Ling's

    Flex List Control Tooltip..?

    Ling's

      HI.,

       

                   I am using flex list control to diplay data mouseover the tooltip menu not display.

       

      coding.

       

      <fx:Script>

      <[[

              public function myDataTipFunction(value:Object):String

                {
                      return (value.document_folder_name);
                 }


              ]]>
          </fx:Script>
         
               <mx:List id="folderListGrid"  rowHeight="24" iconField="@Embed('assets/folder_up.gif')"  labelField="document_folder_name" 

                    dataProvider="{folderListArray}" itemClick="changeTree(event)" showDataTips="true" dataTipFunction="myDataTipFunction" >
        </mx:List>            

       

      any one help..

       

      With Regards

      LinFlex-

        • 1. Re: Flex List Control Tooltip..?
          AdrianWiecek Level 3

          Hi,

           

          Your code works for me. I've created simple dataProvider and it seems to work.

           

          <fx:Script>
                  <![CDATA[
                      import mx.collections.ArrayCollection;
                      import mx.events.FlexEvent;
                     
                      [Bindable]
                      private var folderListArray:ArrayCollection = new ArrayCollection([{document_folder_name:"name1"},
                                                                                          {document_folder_name:"name2"}]);

           

                      public function myDataTipFunction(value:Object):String
                      {
                          return (value.document_folder_name);
                      }

           

                  ]]>
              </fx:Script>

          <mx:List id="folderListGrid" 
                       rowHeight="24"
                       labelField="document_folder_name"
                       dataProvider="{folderListArray}"
                       showDataTips="true"
                       dataTipFunction="myDataTipFunction"/>

           

          Regards,

          Adrian

          • 2. Re: Flex List Control Tooltip..?
            Ling's Level 1

            Thank u. Adrian.,

             

            it's working now... i need one answer.possible to tree control to display tool tip menu.

             

            tree is diplay with data and folder to move the mouse the folder ll be display id and data ll display name.possible ?

             

             

            With regards.,

            LinFlex-

            • 3. Re: Flex List Control Tooltip..?
              AdrianWiecek Level 3

              Hi,

               

              No problem, but i have some problems to understand your english.

               

              What do you want to show in tooltip?

               

              Regards,

              Adrian