Load on demand revisited

2 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 26 Jun 2009 Link to this post

    Hi,

    I have a RadTabstrip with Multipage which contain load-on-demand Radeditors.
    Every time a tab is clicked I resize the Editors to their original size with

    function resizeRadEditors() { 
    if ($telerik && Telerik.Web.UI.RadEditor)  
      {  
        var len = $telerik.radControls.length;  
        for (var i=0;i<len;i++)  
        {  
          var control = $telerik.radControls[i];  
          if (Telerik.Web.UI.RadEditor.isInstanceOfType(control))  
          {  
          //alert(control.get_element().style.height); 
            control._updateEditorSize(control.get_element().style.height); 
          }  
        }  
      }  

    This only works once on every tabclick, the Height value in control.get_element().style.height seems to get lost somewhere in the process. Besides I cannot find anything about the updateEditorSize function, so I do not know which Arguments that one takes.

    Can you help?

    Regards,
    Marc

  2. Fit2Page
    Fit2Page avatar
    345 posts
    Member since:
    Feb 2007

    Posted 29 Jun 2009 Link to this post

    I discovered that the heigth of the Editor is set properly but the width is not.

    I worked around this by setting this hard-coded

    control.get_element().style.width = "400px";
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top