OnClientModeChange is undefined

2 posts, 0 answers
  1. Thomas
    Thomas avatar
    12 posts
    Member since:
    Apr 2009

    Posted 15 Dec 2009 Link to this post

    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.

  2. Lini
    Lini avatar
    2144 posts

    Posted 16 Dec 2009 Link to this post


    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.

    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.
Back to Top