Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2320
Expansion question
posted

Is it possible to have a webpanel expand down?  By default, when the user clicks the expansion indicator, the webpanel collapses upwards.  In a user control I'm working on, it would be great if the webpanel would snap down to the bottom of the page and the UltraWebGrid above it would fill the rest of the screen or all the empty space created when the webpanel collapses.

Can this be accomplished from javascript clientside code and if so could someone offer me any pointers?

  • 10880
    posted

    You can get the WebPanel to collapse in the other direction if you were to fix it to the bottom by using absolute positioning.  When doing so it is hard to also get the webgrid to adapt its size correctly as the panel expands and collapses.  Instead I would use our WebSplitter control that was introduced in 2008 Volume 1 and use that to seperate the webgrid from a lower content area.

    <asp:ScriptManager ID="ScriptManager1" runat="server">

    </asp:ScriptManager>

    <cc1:WebSplitter ID="WebSplitter1" runat="server" Height="100%"

    Orientation="Horizontal" Width="100%">

    <panes>

    <cc1:SplitterPane runat="server">

    <Template>

    <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Height="100%"

    Width="100%">

    </igtbl:UltraWebGrid>

    </Template>

    </cc1:SplitterPane>

    <cc1:SplitterPane runat="server" CollapsedDirection="NextPane" Size="200px">

    <Template>

    stuff

    </Template>

    </cc1:SplitterPane>

    </panes>

    </cc1:WebSplitter>