0 Replies Latest reply on Jul 5, 2014 10:31 AM by Mohit M Chavda

    Can we change in SDK files ?

    Mohit M Chavda Level 1

      Hello,

       

      I am using Flex SDK 4.0.0 in my Web application.

       

      I have face one issue with Advanced Data Grid.

      When i have given variable row height and row height will be set in Advanced Data Grid Column renderer .

       

      But when i have scroll vertically then AdvancedDataGridBaseEx class throw an error for null reference object.

       

      I have found that measuringObjects is null in below function.

      mx_internal function getMeasuringRenderer(c:AdvancedDataGridColumn, forHeader:Boolean, data:Object):IListItemRenderer

          {

              var factory:IFactory = columnItemRendererFactory(c,forHeader,data);

              var item:IListItemRenderer = measuringObjects[factory];

              if (!item)

              {

                  item = columnItemRenderer(c, forHeader, data);

                  item.visible = false;

                  item.styleName = c;

                  listContent.addChild(DisplayObject(item));

                  measuringObjects[factory] = item;

              }

              return item;

          }

       

      While i am checking in Flex SDK 4.6.0, i have found that null measuringObject is track and solved.

      mx_internal function getMeasuringRenderer(c:AdvancedDataGridColumn, forHeader:Boolean, data:Object):IListItemRenderer

          {

              var factory:IFactory = columnItemRendererFactory(c,forHeader,data);

        if (!measuringObjects)

                measuringObjects = new Dictionary(false);

       

              var item:IListItemRenderer = measuringObjects[factory];

              if (!item)

              {

                  item = columnItemRenderer(c, forHeader, data);

                  item.visible = false;

                  item.styleName = c;

                  listContent.addChild(DisplayObject(item));

                  measuringObjects[factory] = item;

              }

              return item;

          }

       

      => I don't want to use Flex SDK 4.6.0.

      => can i directly update in Flex SDK 4.0.0 AdvancedDataGridBaseEx class ? ( i have done but it is not working)

      => can any one have solutions ?

       

      Thanks,

      Mohit