Kevin
Kevin

Reputation: 23634

getting the parent value in Flex

private function editForm():void {
                var event:DepManagementEvent = new DepManagementEvent("Edit Page",true);
                var navi:String;
                event.navi = deleteDataGrid.selectedItem
                dispatchEvent(event);
            }

This function is in item renderer, i need the parent datagrid id to be called here...

Upvotes: 0

Views: 154

Answers (2)

Eric Belair
Eric Belair

Reputation: 10692

Some helpful information here:

http://www.adobe.com/devnet/flex/articles/itemrenderers_pt2_04.html

Upvotes: 0

Amarghosh
Amarghosh

Reputation: 59451

DataGrid(this.owner) or DataGrid(this.listData.owner) would give you the parent data grid. I don't know the exact reasons, but I heard that the second one is the preferred way of doing it.

Upvotes: 1

Related Questions