9 Replies Latest reply on Mar 16, 2010 3:46 AM by Sameer Bhatt

    Advanced data grid > cannot convert renderers::ItemGroupRenderer to mx.controls.listClasses.IListIte

    nikos101 Level 2

      I'm getting an error in my advanced data grid when doing this:

       

      cannot convert renderers::ItemGroupRenderer to mx.controls.listClasses.IListItemRenderer.

       

       

        <mx:rendererProviders>
                      <mx:AdvancedDataGridRendererProvider id="refRP1"  columnSpan="24" depth="1" renderer="{new ClassFactory(ItemGroupRenderer)}">
                         
                      </mx:AdvancedDataGridRendererProvider>
                     
                  </mx:rendererProviders>


      The :ItemRenderer:


      <?xml version="1.0" encoding="utf-8"?>
      <s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/halo" width="400" height="300">
          <fx:Declarations>
              <!-- Place non-visual elements (e.g., services, value objects) here -->
          </fx:Declarations>
       
          <s:SkinnableContainer>
              <s:HGroup>
                  <s:Label text="3">
                     
                  </s:Label>
              </s:HGroup>
          </s:SkinnableContainer>
      </s:ItemRenderer>

       

      any ideas?