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

Change Size of RadMultiPage of tab strip

4 Answers 171 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Pouya
Top achievements
Rank 1
Pouya asked on 11 Jan 2012, 09:10 AM
Dear telerik support,
hi
i have a problem with RadMultiPageof a tabstrip and this is it:
im loading 2 RadMultiPages with different content and the contents have different height 
if i set the the height of  RadMultiPage equal to my bigger content the i have a really bad white space in my second tab
and if set the height to the smaller one the bigger content mixes into other part of page 

how can i change the size of RadMultiPage (or actually set size for each RadPageView ) so that i dont have white space or mixing blocks

i know maybe i should use update panel but i appreciate if you show me how can i do it 

Best regards

4 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 11 Jan 2012, 09:59 AM
Hello Pouya,

Try setting the Height property of the individual PageViews. Here's an example:

<telerik:RadPageView Height="200" ID="RadPageView1" runat="server"></telerik:RadPageView>
Greetings,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Pouya
Top achievements
Rank 1
answered on 11 Jan 2012, 10:51 AM
thanx it works fine :) 
0
Ron
Top achievements
Rank 1
answered on 30 Jul 2012, 10:39 AM
How to change size at client-side?
0
Nencho
Telerik team
answered on 01 Aug 2012, 02:32 PM
Hi Pouya,

In order to set the height of the RadPageView dynamically, you could use the RadTabStrip's client event - OnClientTabSelected in a following manner :

<script type="text/javascript">
       function OnClientTabSelected(sender, args) {
           var MultiPage = $find('<%= RadMultiPage1.ClientID %>');
           var PageView = MultiPage.get_selectedPageView();
           PageView.get_element().style.height = "3000px";
       }
        
</script>

Kind regards,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TabStrip
Asked by
Pouya
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Pouya
Top achievements
Rank 1
Ron
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or