9 Replies Latest reply on Apr 24, 2009 11:29 PM by Flex harUI

    Tooltip not getting on itemrenderer page

    FangAvatar Level 1

      Hi All,

       

      I have a datagrid and in one column have itemrenderer.If we are using label then not mention the tooltip,if resize the column then we see the tooltip.But i got the problem,my code is below :

      <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalScrollPolicy="off" verticalScrollPolicy="off">
      <mx:Script>
          <![CDATA[
              import mx.core.Application;
              import mx.controls.Alert;
              import flash.net.URLRequest;
              import flash.net.navigateToURL;
              import mx.controls.Text;
             
              override public function set data(value:Object):void
              {
               super.data = value;
               if(data.website!=''){
               ins.setStyle("textDecoration","underline");
               ins.mouseChildren=false;
               ins.buttonMode=true;
               ins.useHandCursor=true;
              }
              if(data.website==''){
               ins.setStyle("textDecoration","none");
               ins.mouseChildren=true;
               ins.buttonMode=false;
               ins.useHandCursor=false;
              }
              }

              private function gettext(e:MouseEvent):void
              {
                  //Alert.show(""+data.website);
                  //Alert.show(""+e.currentTarget.text);
                  if(data.website!=''){
                   var datavalue:int=int(data.website);
                       var urlstr:String=""+datavalue;
                      var urlrequest:URLRequest= new URLRequest(data.website);
                 
                      navigateToURL(urlrequest,"_blank"); 
                  }
              }
          ]]>
      </mx:Script>

          <mx:Label id="ins" text="{data.co_name}"  click="gettext(event)"  textAlign="left" width="100%"/>
          </mx:VBox>

      In the above example i not getting the tooltip when resize the column.

       

      Plase help me , thanks in advance.