0

Removing Controls from Container

Hi,

I am trying to dynamically change the controls on the Fullscreen. I find that we can attach a control to a container or view using the appendTo method. Is there a way to remove controls from a container or view?

by
4 Replies
  • Two options that I know of are:

    1. parentContainer.removeChild(controlToRemove)

    2. controlToRemove.suicide()
    0
  • Thank you Steve. That worked like a charm.
    0
  • Okay... Small Problem. It seems that, with removeChild() method, the controls are removed from the display. But they are still there. They are taking focus. I am not able to focus on the newly added controls. Any Ideas?
    0
  • QUOTE (Icarus @ Mar 22 2010, 10:51 PM) <{POST_SNAPBACK}>
    Okay... Small Problem. It seems that, with removeChild() method, the controls are removed from the display. But they are still there. They are taking focus. I am not able to focus on the newly added controls. Any Ideas?


    Hi,

    somecontrol.hide();
    somecontrol.suicide();

    This piece of code worked for me.
    0

Recent Posts

in Design / Interaction - Yahoo! TV Widgets