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

OnClientModeChange is undefined

1 Answer 36 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Thomas
Top achievements
Rank 1
Thomas asked on 15 Dec 2009, 04:09 PM
I'm having an issue with the MOSSRadEditor control. It was working now it's not anymore. I get a javascript error on the page OnClientModeChange is undefined.

the code is this
protected MOSSRadEditor _txtSummary;  
_txtSummary = new MOSSRadEditor();  
_txtSummary.ID = "txtSummary";  
_txtSummary.Height = Unit.Pixel(300);  
 
//getting content  
_txtSummary.Content = Item["Summary"].ToString();  
 
//setting content  
Item["Summary"] = _txtSummary.Content; 

The control render the box on the page, but no tool bars and the content zone is not clickable.

1 Answer, 1 is accepted

Sort by
0
Lini
Telerik team
answered on 16 Dec 2009, 01:44 PM
Hello,

I am unable to find any references to "OnClientModeChange" in the RadEditor for MOSS JavaScript code. If the error started after an update, then perhaps you added this handler in the previous version and then the JavaScript file was overwritten or no longer referenced on the page in the new version? In any case, the code you are showing also does not reference this event. If possible, tell us what changed from when the code was working to now.

Greetings,
Lini
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
WebParts for SharePoint
Asked by
Thomas
Top achievements
Rank 1
Answers by
Lini
Telerik team
Share this question
or