BTW, for DOM related manipulation in the subpanels for conditional panel, use onDomBind event instead of afterRender.