Template Manager - Resize iframe

5 posts, 1 answers
  1. Mattias Moberg
    Mattias Moberg avatar
    18 posts
    Member since:
    Aug 2009

    Posted 05 Jan 2011 Link to this post

    Hi.
    I´ve got some problem to get my template manager dialog to fit my needs.
    As below I set with / height of the dialog from code-behind, but i also need to set new width / height to the iframe that holds "preview".

    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        this.Page.PreRenderComplete += new EventHandler(Page_PreRenderComplete);
    }
    void Page_PreRenderComplete(object sender, EventArgs e)
    {
        Telerik.Web.UI.DialogDefinition TemplateManager = bloggEditor.GetDialogDefinition("TemplateManager");
        TemplateManager.Height = Unit.Pixel(500);
        TemplateManager.Width = Unit.Pixel(1020);
    }

    How can i access Template Manager dialog iframe "templateIframe" to set my own width / height?

    /Mattias
  2. Answer
    Rumen
    Admin
    Rumen avatar
    13748 posts

    Posted 06 Jan 2011 Link to this post

    Hi Mattias,

    For your convenience I prepared and attached a sample working project which demonstrates how to resize the Template manager and its Preview area. I also attached a video demonstrating my test.

    The project is available at: http://www.telerik.com/ClientsFiles/136425_templatemanager.zip and the video at: http://www.telerik.com/ClientsFiles/136426_resizetemplatemanagervideo.zip.

    Greetings,
    Rumen
    the Telerik team
    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. Mattias Moberg
    Mattias Moberg avatar
    18 posts
    Member since:
    Aug 2009

    Posted 08 Jan 2011 Link to this post

    Hi Rumen.
    Thanks so much for the quick handling of the solution to my problem.
  4. Khan
    Khan avatar
    1 posts
    Member since:
    May 2011

    Posted 23 Jun 2011 Link to this post

    The above video link is not working .. giving 404 Not found error.kindly help.  i am having same issue and video is not accesible
  5. Rumen
    Admin
    Rumen avatar
    13748 posts

    Posted 24 Jun 2011 Link to this post

    Hi Raheel,

    Please, find attached an updated version of the project. The new video is available at: http://screencast.com/t/o8YPcGAxQM4.

    Best regards,
    Rumen
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top