This is a migrated thread and some comments may be shown as answers.

Height RadMultiPage dependent on content

1 Answer 49 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Marja
Top achievements
Rank 1
Marja asked on 29 Nov 2013, 04:02 PM
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.)

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 30 Nov 2013, 04:53 AM
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.
Tags
TabStrip
Asked by
Marja
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or