• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

How to dispatch custom events from an item renderer used for Datagrid Column

Community Beginner ,
Jun 02, 2010 Jun 02, 2010

Copy link to clipboard

Copied

Hi,

I am using an Item Renderer for a Data Grid Column and in that mxml, I am dispatching a custom event with data.

But the main mxml which has the DataGrid is not able to resolve the event. How can I solve this?

Thanks

Views

531

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 04, 2010 Jun 04, 2010

Copy link to clipboard

Copied

try this.addactionListener(etc,etc) in main

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 09, 2010 Jun 09, 2010

Copy link to clipboard

Copied

LATEST

Hi,

This is the constructor for Event.


public function Event(type:String, bubbles:Boolean  = false, cancelable:Boolean  = false)

When you created your custom event after extending from Event, for the parent container receives the event, the bubbles property must be set to true.

Please check if you have done so. That should solve the problem. Let me know if it doesn't.

Nishad

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines