I modified the call as follows:
<pdb:CategoriesPnl id="CategoriesPnl" initialize="CtgsPnlInit
(event);"></pdb:CategoriesPnl>
private function CtgsPnlInit(event:Event): void
{
this.addEventListener('dgItemClick', CtgsPnlDGItemClick)
Alert.show(this.hasEventListener("dgItemClick").toString());
}
Results:
1. On entering the custom panel at runtime, the alert return 'true'
indicating that the listener was added to 'this'.
2. On selectItem call, the alert message ' dispatch result: true' and
then the message 'internal' is displayed. However, the alert
message 'external' never displays (which should follow the 'internal'
message).