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

Load on demand revisited

1 Answer 50 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 26 Jun 2009, 01:54 PM
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

1 Answer, 1 is accepted

Sort by
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 29 Jun 2009, 12:55 PM
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";
Tags
Editor
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or