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

Minor uncertainty about RadEditor

1 Answer 59 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 05 Jun 2013, 06:47 PM
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.)

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 10 Jun 2013, 03:35 PM
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.
Tags
Editor
Asked by
Boris
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or