[CLOSED] How to "clear" a dynamically loaded page in panel?

  1. #1

    [CLOSED] How to "clear" a dynamically loaded page in panel?

    Hi
    I have a panel that I load a page dynamically when someone selects a value from a drop-down.
    How can I "clear" the loaded page when someone selects a null value?
    Last edited by Daniil; Oct 08, 2013 at 6:45 AM. Reason: [CLOSED]
  2. #2
    Hi @rthiney,

    It depends on what and how exactly you are loading into the Panel.

    If you load Ext.NET components, then use:
    App.Panel1.removeAll();
    If you load some raw HTML or an iframe, then use:
    App.Panel1.clearContent();
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi @rthiney,

    It depends on what and how exactly you are loading into the Panel.

    If you load Ext.NET components, then use:
    App.Panel1.removeAll();
    If you load some raw HTML or an iframe, then use:
    App.Panel1.clearContent();
    Thanks! Like a charm it worked!
  4. #4
    Good.

    Please note if you will use the clearContent method if the first case (where the removeAll method should be used), then it will also clear the Panel, but components won't be properly destroyed.

Similar Threads

  1. [CLOSED] How does "MaskCls" work for "AutoLoad" mask in panel control
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jul 19, 2012, 12:09 PM
  2. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  3. Replies: 2
    Last Post: Jun 26, 2011, 1:59 AM
  4. Replies: 6
    Last Post: Nov 04, 2010, 10:14 AM
  5. Replies: 1
    Last Post: Nov 03, 2010, 7:31 PM

Posting Permissions