2 Replies Latest reply on Nov 19, 2010 10:26 AM by eran1

    spark renderer in DataGrid is not being "cut"

    eran1

      Hi,

       

      i am trying to use a rendere which extends 'MXDataGridItemRenderer' in DataGrid.

      This renderer contains a spark Label. The problem is that when the coulmn which use this renderer,

      doesn't cut its labels even when it doesn't have enough room.

      in such case, the label of that cell in the coumn, overlapps the column next to it.

       

      The Renderer class:

      <s:MXDataGridItemRenderer
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:s="library://ns.adobe.com/flex/spark"
        width="100%" height="100%">

          <s:Label id="theLabel" height="100%"/>
        <fx:Script>
         <![CDATA[
          override public function set data(value:Object):void {
           super.data = value;
           theLabel.text = "some very long text, which doesn't have enough room for";
          }  
        ]]>
        </fx:Script>

      </s:MXDataGridItemRenderer>

       

       

      does anybody knows how to fix this problem ? is it flex bug ?

      thanks.