Hello,
I have an RadListBox and 3 RadEditor on my page. Now I want to Drag & Drop Items of RadListBox into RadEditor. How can I get the ID of the RadEditor on which I am Dragging and Dropping the RadListBox Item?
As per the example provide I am able to Drag Drop Items in only one Hardcoded RadEditor. Below is the JavaScript for the same
function OnClientNodeDropping(sender, args) {
var editor = $find("<%=RadEditor1.ClientID%>");
var event = args.get_domEvent();
document.body.style.cursor = "default";
var result = isMouseOverEditor(editor, event);
if (result) {
var itemValue = sender.get_selectedItem().get_value();
editor.setFocus();
itemValue = "[[" + itemValue + "]]"
editor.pasteHtml(itemValue);
}
setOverlayVisible(false);
}
Now here what I want is If I am dragging and dropping items in RadEditor1 it should be placed inside RadEditor1, If I am dragging and dropping items in RadEditor2 it should be placed inside RadEditor2.
Please let me know how can I achieve this functionality.
Thanks in advance for your help..
I have an RadListBox and 3 RadEditor on my page. Now I want to Drag & Drop Items of RadListBox into RadEditor. How can I get the ID of the RadEditor on which I am Dragging and Dropping the RadListBox Item?
As per the example provide I am able to Drag Drop Items in only one Hardcoded RadEditor. Below is the JavaScript for the same
function OnClientNodeDropping(sender, args) {
var editor = $find("<%=RadEditor1.ClientID%>");
var event = args.get_domEvent();
document.body.style.cursor = "default";
var result = isMouseOverEditor(editor, event);
if (result) {
var itemValue = sender.get_selectedItem().get_value();
editor.setFocus();
itemValue = "[[" + itemValue + "]]"
editor.pasteHtml(itemValue);
}
setOverlayVisible(false);
}
Please let me know how can I achieve this functionality.
Thanks in advance for your help..