4 Replies Latest reply on Apr 25, 2011 1:29 PM by iamcootis

    Adding an inline ToggleButton to a AdvancedDataGridColumn

    iamcootis Level 1

      I am trying to create an inline item renderer that would contain a Toggle Button.

       

      My code currently looks like this:

       

      <mx:AdvancedDataGridColumn>
                <mx:itemRenderer>
                       <fx:Component>
                                  <s:ToggleButton />
                         </fx:Component>
              </mx:itemRenderer>
      </mx:AdvancedDataGridColumn>

       

      And I am getting this error message...

       

      cannot convert BitStreamComponents::StreamDataGridPanelInnerClass0@16e36cf1 to mx.controls.listClasses.IListItemRenderer.

       

      Should I be doing this some other way?

       

      Thanks for your help.