RadEditor in WebUserControl blows up when enabled=false

4 posts, 0 answers
  1. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 24 Oct 2007 Link to this post

    Hi

    My RadEditor aspx is ...
                <telerik:RadEditor ID="sText" runat="server" Enabled="True" style="overflow: scroll; border: 1px solid red;" Width="500" Height="300">  
                </telerik:RadEditor> 
     

    When I set Enabled="Fales" i get an Sys.ArguementNull Exception: Value cannot be null error ... The code that it throws me inot is ...
    var $addHandler = Sys.UI.DomEvent.addHandler = function Sys$UI$DomEvent$addHandler(element, eventName, handler) {  
        /// <param name="element" domElement="true"></param> 
        /// <param name="eventName" type="String"></param> 
        /// <param name="handler" type="Function"></param> 
        var e = Function._validateParams(arguments, [  
            {name: "element", domElement: true},  
            {name: "eventName", type: String},  
            {name: "handler", type: Function}  
        ]);  
        if (e) throw e;  
     
        if (!element._events) {  
            element._events = {};  
        }  
        var eventCache = element._events[eventName];  
        if (!eventCache) {  
            element._events[eventName] = eventCache = [];  
        }  
        var browserHandler;  
        if (element.addEventListener) {  
            browserHandler = function(e) {  
                return handler.call(element, new Sys.UI.DomEvent(e));  
            }  
            element.addEventListener(eventName, browserHandler, false);  
        }  
        else if (element.attachEvent) {  
            browserHandler = function() {  
                return handler.call(element, new Sys.UI.DomEvent(window.event));  
            }  
            element.attachEvent('on' + eventName, browserHandler);  
        }  
        eventCache[eventCache.length] = {handler: handler, browserHandler: browserHandler};  

    The line it fails on is in cyan

    Kind Regards

    David
  2. Lini
    Admin
    Lini avatar
    2144 posts

    Posted 24 Oct 2007 Link to this post

    Hello David,

    Which version of the Prometheus editor do you have? Try the latest internal build we posted on the forums here - http://www.telerik.com/community/forums/thread/b311D-baetth.aspx It might solve the issue with the disabled editor throwing a client-side exception.

    Best wishes,
    Lini
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. hkdave95
    hkdave95 avatar
    245 posts
    Member since:
    Nov 2006

    Posted 25 Oct 2007 Link to this post

    Hi

    This HotFix solved the problem.

    When is the developer release coming out ?

    My site is still under development so not too urgent but will need it in 3 weeks or so.

    Kind REgards

    David
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 29 Oct 2007 Link to this post

    Hi hkdave95,

    If you need a developer version of any build, posted in the forums, just open a new support ticket and we will send it to you. The hotfix should be officially released near the end of this week, or the beginning of the next.

    Sincerely yours,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top