Show/hide edit in popup

I have a TIWCGJQMEdit (along with a label and some buttons) placed in a TIWCGJQMPopup. I open the popup when clicking on a listview item, and depending on data for that item I want to set visisbility to True or False for the edit control before opening the popup. I cannot get this to work by using the Visible property (the popup follows the design time setting for it, but does not change between times I open it). I tried calling Popup.AjaxRerender, but that just messes it up. Is there an easy way to get this to work?
Using 1.9.0.3373, IW 12.2.27, Delphi XE.
Best regards
Magnus Oskarsson
P.S. I am off on vacation next week, so unless you reply extremely quickly, I won't be able to provide any feedback until the week after that.
Using 1.9.0.3373, IW 12.2.27, Delphi XE.
Best regards
Magnus Oskarsson
P.S. I am off on vacation next week, so unless you reply extremely quickly, I won't be able to provide any feedback until the week after that.