Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
415
Cannot drop ON either the first or last node id they are empty.
posted

I have a WebDataTree in which I cannot drop ON either the first or the last nodes of the tree if these nodes are empty (i.e., they have no nodes on them).

I can, however drop (insert) before or after these nodes. Just not on them.  The DropIndicator for "Move To" does not display, just the one for "Insert Before" or "Insert After".  I have determined that the DragEnter event is being fired when I drag to the empty node, but it only allows inserts before or after, no dropping "on".

Attached are screen shots showing both situations (empty and nonempty).  Again, this only occurs if the destination and parent node are either the first or last of the tree. This seems like a bug in the control.  Please let me know what you think. THanks!

 

Cannot Drop "on" the empty node, only before or after:

Can drop "on" node when not empty:

 

Here is the aspx code for my tree:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<

 

 

 

ig:WebDataTree ID="wdtCurricula" runat="server" DataLoadingMessage

="Please Wait"

 

 

 

NodeIndent="30" Font-Size="Small" EnableAjax="true" EnableConnectorLines

="true"

 

 

 

SelectionType="Single" InitialExpandDepth="10" EnableViewState="true" OnNodeDropped

="wdtCurricula_NodeDropped">

 

 

 

<AutoPostBackFlags NodeDropped="On"

/>

 

 

 

<ClientEvents NodeDropping="nodeDropping" DragEnter="dragEnter"

/>

 

 

 

<DragDropSettings AllowDrop="True" DragDropMode="Move" DropIndicator-Visible

="true"

 

 

 

EnableDragDrop="true" EnableDropInsertion="true" EnableExpandOnDrop="true">

 

 

 

</DragDropSettings

>

 

 

 

<DataBindings

>

 

 

 

</DataBindings

>

 

 

 

<Templates

>

 

 

 

<ig:ItemTemplate ID="RequirementTemplate" runat="server" TemplateID

="RequirementTemplate">

 

 

 

<Template

>

 

 

 

<asp:ImageButton ID="ibEditRequirement" runat="server" AlternateText="Edit" ToolTip

="Edit Requirement"

 

 

 

CausesValidation="false" CommandArgument="SetInCodeBehind" CommandName

="EditRequirement"

 

 

 

ImageAlign="AbsMiddle" OnCommand="ibEditRequirement_Command" ImageUrl="~/Images/icons/edit_enabled16x16.png"

/>

 

 

 

<asp:ImageButton ID="ibRemoveRequirement" runat="server" AlternateText="Remove" ToolTip

="Remove Requirement"

 

 

 

CausesValidation="false" CommandArgument="SetInCodeBehind" CommandName

="RemoveRequirement"

 

 

 

ImageAlign="AbsMiddle" ImageUrl="~/Images/icons/delete_enabled16x16.png" OnCommand="ibRemoveRequirement_Command"

/>

 

 

 

<cc1:ConfirmButtonExtender ID="cbeRemoveRequirement" runat="server" ConfirmText

="Are you sure you want to permanantly remove this requirement?"

 

 

 

TargetControlID="ibRemoveRequirement"

/>

 

 

 

<asp:Label runat="server" ID="lblName" Text="Requirement" Font-Bold="true" Font-Italic

="false"

 

 

 

ForeColor="#6a8fc4"

/>

 

 

 

<asp:Label runat="server" ID="lblType" Font-Bold="false" Font-Italic="false"

/>

 

 

 

&nbsp;

 

 

 

<asp:LinkButton runat="server" ID="lbAddRequirement" ToolTip

="Add a new Requirement"

 

 

 

CausesValidation="false" CommandArgument="SetInCodeBehind" CommandName="AddRequirement" Font-Underline="false" Font-Bold="false" Font-Size

="Smaller"

 

 

 

OnCommand="ibAddRequirement_Command" Text="+R"

/>

 

 

 

<asp:LinkButton runat="server" ID="lbAddElement" ToolTip="Add a new Element" CausesValidation

="false"

 

 

 

CommandArgument="SetInCodeBehind" CommandName="AddElement" OnCommand="ibAddElement_Command" Font-Underline="false" Font-Bold="false" Font-Size

="Smaller"

 

 

 

Text="+E"

/>

 

 

 

</Template

>

 

 

 

</ig:ItemTemplate

>

 

 

 

<ig:ItemTemplate ID="ElementTemplate" runat="server" TemplateID

="ElementTemplate">

 

 

 

<Template

>

 

 

 

<asp:ImageButton ID="ibRemoveElement" runat="server" AlternateText="Remove" ToolTip

="Remove Element"

 

 

 

CausesValidation="false" CommandArgument="SetInCodeBehind" CommandName

="RemoveElement"

 

 

 

ImageAlign="AbsMiddle" OnCommand="ibRemoveElement_Command" ImageUrl="~/Images/icons/delete_enabled16x16.png"

/>

 

 

 

<cc1:ConfirmButtonExtender ID="cbeRemoveElement" runat="server" ConfirmText

="Are you sure you want to permanantly remove this element?"

 

 

 

TargetControlID="ibRemoveElement"

/>

 

 

 

<asp:Label runat="server" ID="lblType" Font-Bold="false" Font-Italic="true" ForeColor="#507fbc"

/>

 

 

 

<asp:Label runat="server" ID="lblCreditsHours" Font-Italic="true" Font-Bold

="false"/>

 

 

 

<asp:Label runat="server" ID="lblName" Font-Bold="false" />

 

 

 

<asp:Label runat="server" ID="lblElementText"

/>

 

 

 

</Template

>

 

 

 

</ig:ItemTemplate

>

 

 

 

</Templates

>

 

 

 

</ig:WebDataTree

>

Parents
No Data
Reply
  • 8160
    posted

    Hello jmakuch,

    Everything looks normal. Does this happens with  all the browsers? What is the build number that you are using?

     

    Thank you

Children