I am trying to use the RowExpander to display different content based on a flag.
What I am currently doing is I am defining a default tpl in the expander object and using Ext.DomHelper.overwrite to swap the content of tpl when a certain flag is true.

now the above seems to be working except for a problem: when the RowExpander is expanded with the swapped content, if I edit a cell in my grid and click away (basically committing the change), the expanded content switches back to the default tpl content.... why is that?