Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

How can I change the height of a webHtmlEditor inside JavaScript?

Last post 11-06-2008 18:30 by [Infragistics] Viktor Snezhko. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 08-25-2008 5:59

    • assaad33
    • Not Ranked
    • Joined on 08-25-2008
    • Points 30

    How can I change the height of a webHtmlEditor inside JavaScript?

     I have a webPanel in my form, and under it I have a WebHtmlEditor. I want to write a Javascript so when the webPanel is collapsing the webHtmlEditor's height is increased by 200 px, and when it's expending the  webHtmlEditor's height is decreased by 200 px.

    • Post Points: 5
  • 08-26-2008 4:26 In reply to

    • assaad33
    • Not Ranked
    • Joined on 08-25-2008
    • Points 30

    Re: How can I change the height of a webHtmlEditor inside JavaScript?

     Can anyone help me?

    • Post Points: 5
  • 08-28-2008 2:34 In reply to

    • assaad33
    • Not Ranked
    • Joined on 08-25-2008
    • Points 30

    Re: How can I change the height of a webHtmlEditor inside JavaScript?

    Why is this forum sooooooooooo dead?

    Am I talking to myself?

    • Post Points: 20
  • 11-06-2008 9:12 In reply to

    • nagyinc
    • Not Ranked
    • Joined on 11-06-2008
    • Points 20

    Re: How can I change the height of a webHtmlEditor inside JavaScript?

    function Resize() { var test = document.getElementById("htmlEditor"); test.style.pixelHeight = document.documentElement.clientHeight; } Put this function into body's onresize
    • Post Points: 20
  • 11-06-2008 18:30 In reply to

    Re: How can I change the height of a webHtmlEditor inside JavaScript?

    Hi,

    Changing size of editor on client is not supported feature. However, if you look at generated html then you may find that editor renders outer <table> which id matches with its ClientID. So, as previous suggestion said, you may set its height.

    <script type="text/javascript">
    function
    resizeEditor()
    {
     
    var table = document.getElementById("WebHtmlEditor1");
      table.style.height =
    "500px";
    }
    </script>
    <
    input type="button" value="resize" onclick="resizeEditor()" />
    <ighedit:WebHtmlEditor ID="WebHtmlEditor1" runat="server" ...

    Regards,
    Viktor
    Infragistics web team
    • Post Points: 5
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems