ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - HTML Editor - Client side

Obout.Ajax.UI.HTMLEditor.PreDropArgs class

 Inheritance Hierarchy

Argument of this type is passed to the handlers of the preDrop event.
Note Note
To get property values for client API properties, you must call property accessor method that is named with the get_ prefix. For example, to get a value for a property such as originalEvent, you call the get_originalEvent method:
<script type="text/JavaScript">
    // on the 'preDrop' event raised
    function onPreDrop(sender, args) {
       // original 'Drop' event
       var evt = args.get_originalEvent();
       // try to get 'text' data to be dropped
       var data = evt.dataTransfer.getData("Text");
       // allow some text be dropped only
       if (data == null || data.length == 0) {
          // cancel the drop
    // on EditPanel loaded
    function onLoaded(sender, args) {
       // get the inner DesignPanel
       var designMode = Obout.Ajax.UI.HTMLEditor.ActiveModeType.Design;
       var designPanel = sender.get_modePanels()[designMode];
       // add the 'preDrop' event handler
obout:Editor runat="server" Id="editor" EditPanel-OnClientLoaded="onLoaded" ... />


Name Description
propertycancel string. Gets or sets a value that specifies whether the event source should cancel the operation that caused the event. (Inherited from Sys.CancelEventArgs.)
propertyoriginalEvent object. Gets the source DOM 'drop' event.

"Let me tell you that your products are good!"


Random testimonial   All testimonials