[CLOSED] ViewPort Center, Resize GridPanel

  1. #1

    [CLOSED] ViewPort Center, Resize GridPanel

    Hi, I have a standard viewport, and load the center panel using a javascript to load other pages using IFRAME.
    My other page has a gridpanel in it. When the East panel of the view port gets closed, I want to make sure the IFRAME loaded center panel refreshes the GridPanel..no the page all together..but just have the grid panel resize itself...

    How can I do this?

    Center Panel:
    <ext:Panel Height="125" ID="pnlSectionInfo" runat="server" BodyStyle="text-align:center;" Title="Section Information" TitleAlign="Center" Region="South" Collapsed="false" Collapsible="true" Icon="Information">
                    <Loader ID="Loader3" runat="server" AutoLoad="false" Mode="Frame" RemoveAll="true" MonitorComplete="true">
                        <LoadMask Msg="Loading Section Info..." ShowMask="false"></LoadMask>
                    </Loader>
                </ext:Panel>
    Last edited by Daniil; Jun 06, 2013 at 4:34 AM. Reason: [CLOSED]
  2. #2
    Hello!

    I want to make sure the IFRAME loaded center panel refreshes the GridPanel
    You should listen Collapse event and write in it something like this:

    #{pnlSectionInfo}.getBody().#{yourGridId}.reload();
    The main point here the use of getBody() method to get IFRAME context.

    Also, didn't quite understand this:

    no the page all together..but just have the grid panel resize itself...
    What do you mean by resize?
  3. #3
    Quote Originally Posted by Baidaly View Post
    Hello!



    You should listen Collapse event and write in it something like this:

    #{pnlSectionInfo}.getBody().#{yourGridId}.reload();
    The main point here the use of getBody() method to get IFRAME context.

    Also, didn't quite understand this:



    What do you mean by resize?
    There is another page alltogether that loads in pnlSectionInfo...
    That page contains the grid. I'll give that a shot and see if your suggestion works..
  4. #4
    Hi,

    I am not sure, but you might need to add a Viewport as a top level container withing an iframe.

Similar Threads

  1. [CLOSED] Printing the center region of a viewport
    By blueworld in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 29, 2013, 3:00 PM
  2. [CLOSED] Problem with Gridpanel and Viewport on browser resize
    By John_Writers in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 10, 2011, 10:44 AM
  3. [CLOSED] Center tablelayout in viewport
    By CarWise in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 01, 2011, 12:04 PM
  4. Replies: 6
    Last Post: Sep 25, 2009, 3:51 AM
  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