1 Reply Latest reply on Oct 8, 2007 8:01 AM by mae@ccg

    Tool tips

      Has anyone tried to create a dynamic tool tip where the data will change per each line item in a DG? For this example lets say you want to display some details on an order and there is a list of orders in the DG.
        • 1. Re: Tool tips
          This is what I do:

          1. Create an item renderer in the data grid column.
          2. Choose a component that supports tooltips (I like box, hbox, vbox)
          3. Override updateDisplayList
          4. If the data is not null (important!), set the tooltip based on data.

          For example, I have an array or reasons a row may not be editable, so my code looks like this:

          this.toolTip = data.notEdiableReasons.join("\n");

          Which gives me a nice, multi-line tooltip.

          Hope that helps.