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

Template Manager - Resize iframe

4 Answers 76 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mattias Moberg
Top achievements
Rank 1
Mattias Moberg asked on 05 Jan 2011, 07:14 PM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 06 Jan 2011, 11:00 AM
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.
0
Mattias Moberg
Top achievements
Rank 1
answered on 08 Jan 2011, 03:17 PM
Hi Rumen.
Thanks so much for the quick handling of the solution to my problem.
0
Khan
Top achievements
Rank 1
answered on 23 Jun 2011, 01:31 PM
The above video link is not working .. giving 404 Not found error.kindly help.  i am having same issue and video is not accesible
0
Rumen
Telerik team
answered on 24 Jun 2011, 03:34 PM
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.

Tags
Editor
Asked by
Mattias Moberg
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Mattias Moberg
Top achievements
Rank 1
Khan
Top achievements
Rank 1
Share this question
or