Height RadMultiPage dependent on content

2 posts, 1 answers
  1. Marja
    Marja avatar
    70 posts
    Member since:
    Nov 2013

    Posted 29 Nov 2013 Link to this post

    Is it possible to have dynamic page heights in a RadMultiPages, so that the tabpage height is automatically adjusted to the content of each indidual page?
    (We're not loading external content.)
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 Nov 2013 Link to this post

    Hi Marja,

    By default RadMultiPage behavior is that it will automatically adjust the height with the content inside it. Please have a look into the following sample code snippet.

    ASPX:
    <telerik:RadTabStrip ID="RadTabStrip1" runat="server" SelectedIndex="0" MultiPageID="RadMultiPage1">
        <Tabs>
            <telerik:RadTab Text="Tab1" PageViewID="Page1">
            </telerik:RadTab>
            <telerik:RadTab Text="Tab2" PageViewID="Page2">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" Style="border: 1px solid red;">
        <telerik:RadPageView runat="server" ID="Page1">
            <telerik:RadTextBox ID="RadTextBox1" runat="server">
            </telerik:RadTextBox>
            <br />
            <telerik:RadButton ID="RadButton1" runat="server" Text="Demo">
            </telerik:RadButton>
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="Page2">
            <telerik:RadTextBox ID="RadTextBox3" runat="server">
            </telerik:RadTextBox>
        </telerik:RadPageView>
    </telerik:RadMultiPage>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top