Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4105794
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T21:17:38+00:00 2026-05-20T21:17:38+00:00

I have set the itemrenderer package like that: package myrenderers { import mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer; public

  • 0

I have set the itemrenderer package like that:

package myrenderers
{
import mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer;

public class theHeaderRenderer extends AdvancedDataGridItemRenderer
{
    public function theHeaderRenderer()
    {
        super();
        setStyle("verticalAlign","middle"); 
    }
}

}

However when I include the following lines in my AdvancedDataGridColumn tag,

            <fx:Component>
                <myrenderers:theHeaderRenderer"/>
            </fx:Component>

        </mx:headerRenderer>

            <fx:Component>
                <renderers:someotherrenderer/>
            </fx:Component>

        </mx:itemRenderer>

I get the following error:

TypeError: Error #1034: Type Coercion failed: cannot convert mx.controls.dataGridClasses::DataGridListData@ac84f81 to mx.controls.advancedDataGridClasses.AdvancedDataGridListData.
at mx.controls.advancedDataGridClasses::AdvancedDataGridItemRenderer/set listData()[E:\dev\4.x\frameworks\projects\datavisualization\src\mx\controls\advancedDataGridClasses\AdvancedDataGridItemRenderer.as:232]
at mx.controls::DataGrid/http://www.adobe.com/2006/flex/mx/internal::calculateHeaderHeight()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\DataGrid.as:2182]
at mx.controls.dataGridClasses::DataGridHeader/measure()[E:\dev\4.x\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridHeader.as:201]
at mx.core::UIComponent/measureSizes()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8216]
at mx.core::UIComponent/validateSize()[E:\dev\4.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8140]
at mx.managers::LayoutManager/validateSize()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:617]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:709]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1072]

Can anyone suggest how I can come across this problem?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T21:17:38+00:00Added an answer on May 20, 2026 at 9:17 pm

    First, I’d recommend you extend your custom headerRenderer from AdvancedDataGridHeaderRenderer instead of AdvancedDataGridItemRenderer.

    Second, it looks like you are mixing the mx:DataGrid with the mx:AdvancedDataGrid. I guess that’s the cause for your type coercion error. Make sure that your MXML looks something like this:

    <mx:AdvancedDataGrid>
        <mx:columns>
            <mx:AdvancedDataGridColumn dataField="foo" headerRenderer="myrenderers.theHeaderRenderer"/>
        </mx:columns>
    </mx:AdvancedDataGrid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an itemRenderer in my DataGrid that will display coloredBoxes (like a color
I have set the Timeout property of SmtpClient class, but it doesn't seem to
I have set of images within UL like this : <ul> <li> <a href=#>
I have set of classes which inherit from a single super class: Super |
I have set up a Django application that uses images. I think I have
I have have successfully set up a list that pulls users from a database
I have set up the Nginx +unicorn for my rails application, it is working
I have set up an admin panel for charter, yacht and other vehicles reservation
We have set a custom 404 error page in order to display a 'nice'
I have set an environment variable in windows by name sample. Can I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.