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

[Solved] Fireing a RadEditor command from a parent page error

1 Answer 90 Views
Editor
This is a migrated thread and some comments may be shown as answers.
thepilsbury
Top achievements
Rank 1
thepilsbury asked on 21 Feb 2008, 02:29 PM

Hi,

I have a form with a radsplitter control. The left hand pane has a treeview for navigation. When a node is clicked a

specific page is loaded into the right hand pane using the serverside ContentURL property.

One of the loaded pages contains a RadEditor control. This has its OnClientLoad event wired to a handler that

toggles the screen mode in order to show the RadEditor full screen (within the pane).

Also, on the RadEditor control I have created a custom button ('Save') that initiates an ajax request. The ajax

request handler saves the content of the Radeditor to the database.

This works great.

However I want to ensure that when the user clicks another node in the tree (and another page gets loaded) that the

existing content in the RadEditor is saved to the database. (Just in case the user had forgotten to press the custom

'Save' button).

So, I wired up some javascript in the parent form to respond to the treeview OnClientNodeClicking event. In this

javascript function I get a reference to the editor within the pane and fire the custom 'Save' command.

Sure enough, the editor's content is saved to the database but also I get a javascript error:

Error: '_f.get_contantArea()' is null or not an object

I can't work out why this error is occurring. Any clues?

I've created a website to demonstrate but not sure how to attach a file to the post.

1 Answer, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 22 Feb 2008, 10:16 AM
Hi thepilsbury,

It is not possible to attach projects in the public forum.
Please open a support ticket, and send us the project. We will examine it and get back to you with a solution.


Kind regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
thepilsbury
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Share this question
or