Hi.
Im trying to deny some operation on the client side through the OnClientNodeDragStart treeview event. If I show a simple alert in the handler the node gets stuck.
Thanks
Im trying to deny some operation on the client side through the OnClientNodeDragStart treeview event. If I show a simple alert in the handler the node gets stuck.
function OnDragStart(sender, args) |
{ |
alert("hello"); |
} |
<body> |
<form id="form1" runat="server"> |
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
</telerik:RadScriptManager> |
<div> |
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server"> |
</telerik:RadAjaxManager> |
<telerik:RadTreeView ID="RadTreeView" runat="server" |
LoadingStatusPosition="BeforeNodeText" EnableDragAndDrop="True" |
onclientnodedragstart="OnDragStart"> |
<Nodes> |
<telerik:RadTreeNode runat="server" Expanded="True" ExpandMode="ClientSide" |
Text="Parent A" Value="a"> |
<Nodes> |
<telerik:RadTreeNode runat="server" ExpandMode="ClientSide" Text="Child A.1" |
Value="a1"> |
</telerik:RadTreeNode> |
<telerik:RadTreeNode runat="server" ExpandMode="ClientSide" Text="Child A.2" |
Value="a2"> |
</telerik:RadTreeNode> |
</Nodes> |
</telerik:RadTreeNode> |
</Nodes> |
<CollapseAnimation Type="OutQuint" Duration="100"></CollapseAnimation> |
<ExpandAnimation Type="OutQuart" Duration="100"></ExpandAnimation> |
</telerik:RadTreeView> |
</div> |
</form> |
</body> |
Thanks