Just an update. In the last 4 hours I still am not getting it.
I don't get an error in the renderer:
override public function set data(value:Object):void
if (value == null ||
value == "")
super.data = value;
var lb2:LinkButton = new LinkButton();
if (value.rsrceID == null ||
value.rsrceID == 0)
lb2.label = value.individualName + ": *no act. record*";
lb2.label = value.individualName
+ ": " + value.rsrceID + " " + df.format(value.rspTS);
public function retrieveList(event:Event):void
dispatchEvent(new Event(UserAA_NmLk_Renderer.CLICK, true, true));
In the component that contains the advancedatagrid where this is the first column, I do get an error:
private function dgCreationCompleteHandler(e:FlexEvent):void
** dg.addEventListener(UserAA_NmLk_Renderer.CLICK, selectTopGridHandler);
// if checkbox renderer
// Called when top grid row box checked
public function selectTopGridHandler(data:Object):void
** error is:
Multiple markers at this line:
-1120: Access of undefined property UserAA_NmLk_Renderer.
-1 changed line
What I want to happen is when the user clicks one of the links in the first column of an advancedatagrid that that click bubbles up from the itemrenderer up to the advancedatagrid up to the component where it will be processed.
Using this string in google ("flex dispatch event from renderer") I haven't found a detailed explaination yet.
Prior to this attempt to use a linkbutton (per the user's request), I was able to bubble up an event using a checkbox and a button. I'm not sure why it won't bubble now.
It now appears to be working. The only major change I made was to make the literals associated with the "CLICK" constant not have underscores. I can't imagine why that would make a difference, however. So I could be back in ten minutes if it suddenly, again, decides that it isn't going to work.