0 Replies Latest reply on Jan 29, 2012 10:41 AM by Abhishek Chaudhary

    Tooltip for label renderer inside hbox

    Abhishek Chaudhary

      Label item renderer shows the text truncated automatically as per column width. I want to use a label and a link button and I am putting them inside Hbox.

      Now if any text comes in label renderer it does not show tool tip.

      Is there any work around?

       

       

      <?xml version="1.0" encoding="utf-8"?>

      <s:MXAdvancedDataGridItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"

                                                                                        xmlns:s="library://ns.adobe.com/flex/spark"

                                                                                        xmlns:mx="library://ns.adobe.com/flex/mx"

                                                                                        focusEnabled="true">

       

                <mx:HBox width="100%" horizontalScrollPolicy="off">

       

                          <s:Label showTruncationTip="true"  width="95%" id="lblData" top="0" left="0" right="0" bottom="0" text="{data.label}" />

       

                          <mx:LinkButton width="5%" id="lnkBtnData" top="0" textDecoration="underline" color="#0857F9" label="More" />

       

                </mx:HBox>

       

      </s:MXAdvancedDataGridItemRenderer>

       

       

      Also I tried to create AS renderer for same but it is giving performance issues.