Minor uncertainty about RadEditor

2 posts, 0 answers
  1. Boris
    Boris avatar
    289 posts
    Member since:
    Oct 2012

    Posted 05 Jun 2013 Link to this post

    I'm working on a Dot Net 4.0 C# web app.  I already have a RadEditor in there with a keydown event handler to detect text changes (for queries when I hit the cancel button.)  Everything is working fine.  

    I'm thinking about adding a mouseover event handler as well but I'm looking at your documentation here (http://www.telerik.com/help/aspnet-ajax/editor-attacheventhandler.html).

    I was wondering what you meant by 'depending on the browser'?  Is this page up to date?  (Just tried.  Can't seem to get it to work.)

    (I should also mention that my current declaration looks like this:     editor.attachEventHandler("keydown", function (sender, e)
    keydown, not onkeydown, yet this part seems to be working perfectly.)
  2. Ivaylo
    Admin
    Ivaylo avatar
    37 posts

    Posted 10 Jun 2013 Link to this post

    Hello Boris,

    Thank you for your question.

    We have specifically mentioned that the function is dependent on the browser, because different browsers behave differently and we need to attach the events to different elements in order for the desired behavior to be achieved.

    As for the event names, the attachEventHandler() function supports both ways of writing them. Click and onclick, for example, will produce the same behavior. However, addExternalHandler only accepts event names, explicitly written without the 'on' prefix - for example: click, mouseover, mouseout. I have tested those scenarios and have experienced no issues achieving the desired behavior.

    I am attaching a sample scenario that I have run on my machine which produced no unexpected results. Could you please run it and see whether it is also causing any issues?

    If the problem persists, could you please provide us with additional information regarding the problem, such as the browser you are currently using, its version, and any steps required to reproduce the issue? Also, the ticket info states that you are using controls as of 2013 Q1, is that correct?

    I hope that the provided answer was satisfactory. We will be expecting your feedback in case you are still experiencing the issue. Should you have any other questions, do not hesitate to contact us.

    Regards,
    Ivaylo
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top