Hi,
I have been looking all over to find if anyone else had this issue, but I couldn't find anything.
In our project we have several Telerik controls, in one particular place, we are using drag and drop from a Rad Grid to a TreeView, it works fine in Firefox 8 and in IE, but in Firefox 5 and previous versions throws the following error:
The code we use to drag and drop from the grid to the tree, we took it from this forums.
The error happens in the function:
}
Which is called in:
function onRowDropping(sender, args) {
var dest = args.get_destinationHtmlElement();
if (dest) {
dropRowOnTree(args);
}
}
This is the function to handle the OnClientRowDropping of the grid event.
Using firefug to debug i find that args.get_destinationHtmlElement(), is brining the span where the text of the node is being shown.
The tree is configured like this
<cc1:TreeView ID="treeOptions" runat="server" EnableDragAndDrop="true" OnNodeDrop="treeOptions_HandleDrop"
MultipleSelect="true" OnClientNodeDropping="onNodeDropping" EnableDragAndDropBetweenNodes="true">
<NodeTemplate>
<div onmouseover="<%#string.Format("javascript:showHideNodeOptions(this, true, '{0}');", Eval("Type")) %>"
onmouseout="javascript:showHideNodeOptions(this, false);" style="margin-right: 10px;">
<span>
<%# DataBinder.Eval(Container.DataItem, "Name") %></span>
<asp:LinkButton CausesValidation="false" ID="imgAdd" Style="display: none; cursor: pointer"
AlternateText="Edit" runat="server" OnCommand="NodeEditClick" CssClass="icon editIcon"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id") %>' />
</div>
</NodeTemplate>
</cc1:TreeView>
Any help you could give me would be greatly appreciated.
Dzy.-
I have been looking all over to find if anyone else had this issue, but I couldn't find anything.
In our project we have several Telerik controls, in one particular place, we are using drag and drop from a Rad Grid to a TreeView, it works fine in Firefox 8 and in IE, but in Firefox 5 and previous versions throws the following error:
args.get_destinationHtmlElement().click is not a function
The code we use to drag and drop from the grid to the tree, we took it from this forums.
The error happens in the function:
function dropRowOnTree(args) {
args.get_destinationHtmlElement().click();
}
Which is called in:
function onRowDropping(sender, args) {
var dest = args.get_destinationHtmlElement();
if (dest) {
dropRowOnTree(args);
}
}
Using firefug to debug i find that args.get_destinationHtmlElement(), is brining the span where the text of the node is being shown.
The tree is configured like this
<cc1:TreeView ID="treeOptions" runat="server" EnableDragAndDrop="true" OnNodeDrop="treeOptions_HandleDrop"
MultipleSelect="true" OnClientNodeDropping="onNodeDropping" EnableDragAndDropBetweenNodes="true">
<NodeTemplate>
<div onmouseover="<%#string.Format("javascript:showHideNodeOptions(this, true, '{0}');", Eval("Type")) %>"
onmouseout="javascript:showHideNodeOptions(this, false);" style="margin-right: 10px;">
<span>
<%# DataBinder.Eval(Container.DataItem, "Name") %></span>
<asp:LinkButton CausesValidation="false" ID="imgAdd" Style="display: none; cursor: pointer"
AlternateText="Edit" runat="server" OnCommand="NodeEditClick" CssClass="icon editIcon"
CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id") %>' />
</div>
</NodeTemplate>
</cc1:TreeView>
Any help you could give me would be greatly appreciated.
Dzy.-