How to Resize RadPageView on iframe src change?

3 posts, 0 answers
  1. KK60
    KK60 avatar
    14 posts
    Member since:
    Apr 2010

    Posted 20 May 2010 Link to this post

    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. KK60
    KK60 avatar
    14 posts
    Member since:
    Apr 2010

    Posted 24 May 2010 Link to this post

    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
  3. Yana
    Admin
    Yana avatar
    5030 posts

    Posted 25 May 2010 Link to this post

    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.
Back to Top