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

RadEditor isn't fully loaded

1 Answer 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anooshiravan
Top achievements
Rank 1
Anooshiravan asked on 26 Feb 2018, 01:25 PM

I'm using a RadEditor inside my own user control (*.ascx) and I have set it's onClientLoad as:

<script type="text/javascript">
    function OnClientLoad(editor, args) {
        debugger;
        alert('hi');
    }
</script>

it is rarly fired as I refresh the page.

at times that it isn't fired I can't use $find("...") as it returns null.

how can I fix this?

thanks in advance.


1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 26 Feb 2018, 02:45 PM
Hi,

Search in your code for the $find method and provide a valid URL to the control. Once the error is resolved the rest of the JavaScript on the page will get executed too.

Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
General Discussions
Asked by
Anooshiravan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or