0 Replies Latest reply on Oct 25, 2011 8:43 AM by RaghuKunde

    OLAPDataGrid Custom headerRendering & itemRendering

    RaghuKunde

      I am trying to use custom item & header renderers to OLAPDataGrid.

      I got this exception posted in http://forums.adobe.com/thread/37686

      I see no replies to that thread.

      I could not find any examples in: http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_2.html

       

      I tried to use OLAPDataGridHeaderRendererProvider (http://livedocs.adobe.com/livecycle/8.2/programLC/common/langref/mx/controls/olapDataGridC lasses/OLAPDataGridHeaderRendererProvider.html)

       

      <mx:OLAPDataGrid id="pivotGrid" width="100%" height="100%">

        <mx:headerRendererProviders> <!--renderer="com.XXX.renderer.MaybeEditableRenderer" -->

          <mx:OLAPDataGridHeaderRendererProvider uniqueName="[DefaultDim].[Default]"

            renderer="com.jpmc.renderer.MyHeadRenderer"

            type="{OLAPDataGrid.OLAP_HIERARCHY}" />

        </mx:headerRendererProviders>

      </mx:OLAPDataGrid>

       

      This kind of works, as it does try to call my "MyHeadRenderer", but exception happens saying "factories" is null in OLAPDataGridHeaderRenderer