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

How to Resize RadPageView on iframe src change?

2 Answers 102 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
KK60
Top achievements
Rank 1
KK60 asked on 20 May 2010, 10:00 PM
Can I and what is the best way to dynamically resize the height of a RadPageView? 

In my RadMultiPage, I have a RadPageView that contains an iframe with src="Page1.aspx" initially.  Right now, Page1.aspx codebehind may Response.Redirect to Page2.aspx.  However, Page2.aspx has a greater height than Page1.aspx.  I'm open to a codebehind and/or javascript solution.  Or is there is a different element that should be resized?

Thanks,
Carmen

2 Answers, 1 is accepted

Sort by
0
KK60
Top achievements
Rank 1
answered on 24 May 2010, 03:40 PM
Well...I put a javascript function in the aspx that contains the RadMultiPage which changes the style.height of the RadPageView according to an input parameter.  That [parent] function is called from the pageLoad() of the src aspx of the iframe.  It appears to work without any problems.  Seems simple enough, but I'd welcome any comments/criticisms on this solution.

Thanks,
Carmen
0
Yana
Telerik team
answered on 25 May 2010, 03:32 PM
Hello Carmen,

Actually I was going to suggest similar approach.

Regards,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TabStrip
Asked by
KK60
Top achievements
Rank 1
Answers by
KK60
Top achievements
Rank 1
Yana
Telerik team
Share this question
or