I've tried following the directions in: http://www.telerik.com/forums/what-event-is-fired-on-resize but it doesn't appear that onResizeEnd is called when auto resizing.
I have the RadEditor inside a RadWindow and I need to run some javascript to resize the RadWindow when the RadEditor auto-sizes. Can I get some direction about what event to trap on so I can run my javascript to resize my Rad Window manually?
Thanks!
6 Answers, 1 is accepted
Bump. Can I get some help, Rumen? Ianko? Thanks!
Surely there is some client side event when the RadEditor auto sizes...
Bump.
Can you check the following resource:
http://www.telerik.com/support/code-library/resizing-radeditor-to-fill-a-container?
Regards,
Rumen
Telerik by Progress
Thanks for the reply but that is the exact opposite of what I am trying to do.
I am using the auto-resize feature of the RadEditor with great success. However, when it auto-resizes I need to run some client side javascript to resize some other elements on my page. I've looked into some other 3rd party libraries to detect when the div containing the RadEditor changes height but this seems very wasteful and there should be some event in the RadEditor that is firing to cause the resize. I just need to add another handler to that.
You can use the following approach to detect when the size of RadEditor is changed:
<script type=
"text/javascript"
>
function
OnClientLoad(sender, args) {
var
contentWindow = sender.get_contentWindow();
$telerik.addExternalHandler(contentWindow,
"resize"
,
function
() {
console.log(
"RadEditor has been resized"
);
});
}
</script>
<telerik:RadEditor runat=
"server"
ID=
"RadEditor1"
AutoResizeHeight=
"true"
OnClientLoad=
"OnClientLoad"
>
<Content>
test content
</Content>
</telerik:RadEditor>
In the handler of the resize you can check the new size of the editor or implement additional functionality related to resizing the editor.
Regards,
Rumen
Telerik by Progress