zoom

  •  03-19-2008, 8:06 AM

    zoom

    My problem  is I have a editor which is read only. while loading itself I need to show in 25% zoom .

    Here is my code

    <
    CE:Editor ID="Preview" runat="server" AutoConfigure="None" ReadOnly="true" ShowBottomBar="false" Height="500Px" Width="800Px" >
    </CE:Editor>

    in Page load cs file

    protected void Page_Load(object sender, EventArgs e)

    {

    if (!IsPostBack)

    {

    StringBuilder sb = new StringBuilder();

    sb.Append("<script language='javascript' type='text/javascript'>");

    sb.Append(" var editor1 = document.getElementById('" + Preview.ClientID + "');");

    sb.Append(" editor1.ExecCommand('ZOOM',false,25);");

    sb.Append("</script>");

    Page.ClientScript.RegisterStartupScript(Page.GetType(), "zoom", sb.ToString());

     

    }
    }
     
    It is giving error as this object doesnot support this property/method
     
    but if I put a  button  and write this code in onClientclick event  and remove readonly="true" property it is working.......... but not in initial load.
     
    I need zooming and it has to be read only while loading itself
View Complete Thread