[CLOSED] How to take up the whole area of the center region panel of a viewport

  1. #1

    [CLOSED] How to take up the whole area of the center region panel of a viewport

    Good Day,

    In my viewport, I have a panel positioned to center region. I am dynamically loading the content of the panel as below:
                Ext.Ajax.request({
                    params: {
                        containerId: 'MainContentPanel'
                    },
                    url: requestUrl,
                    success: function (response) {
                        eval(response.responseText);
                    }
                });
    What I am trying to achieve is that loaded content for the panel automatically take up the whole area of the panel, i.e., 100% in width. Please let me know what I should do. Much appreciated.

    Regards,
    Xiaogang
    Last edited by Daniil; Jun 20, 2012 at 11:06 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Could you wrap the code in [CODE ] tags please? See #3:
    More Information Required
  3. #3
    Hi,

    Thanks for editing.

    Please clarify what content do you load into a center region panel?

    If an Ext.NET component, then, to achieve your requirement you should set up
    Layout="FitLayout"
    fort the center region Panel and add the content widget using the add method.
    centerRegionPanel.add(contentWidget);
    centerRegionPanel.doLayout();
    Please note that only Ext.NET components can participate in Ext.NET layout engine. Non Ext.NET content, for example, raw HTML, you could wrap into an <ext:Container>. In a different way, you will need to manage sizes manually.

    By the way, I would use Loader to load Ext.NET components.
    https://examples2.ext.net/#/Loaders/.../Http_Handler/
    https://examples2.ext.net/#/Loaders/...ON_WebService/
    https://examples2.ext.net/#/Loaders/...Direct_Method/

Similar Threads

  1. Replies: 5
    Last Post: Jun 18, 2012, 8:47 PM
  2. Replies: 5
    Last Post: Mar 22, 2012, 2:12 PM
  3. Replies: 6
    Last Post: Sep 25, 2009, 3:51 AM
  4. [CLOSED] Dinamically add Tab from the IFrame Center region
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 23, 2009, 12:37 PM
  5. Dynamic viewport's center area
    By testix in forum 1.x Help
    Replies: 1
    Last Post: Jan 19, 2009, 12:34 PM

Posting Permissions