[CLOSED] TreeView Copy="True" , can I define that "Copy" property in the tree node level?

  1. #1

    [CLOSED] TreeView Copy="True" , can I define that "Copy" property in the tree node level?

    Hi

    There is a "Copy" property of the TreeView, which if set to "True", when you drag and drop nodes in the tree will create a copy instead of moving that node.

    Now, I've got different kind of nodes and some of them I want to "move" and some them I want to "copy". Is there a way to define that behavior in the tree node itself, rather than on the whole TreeView?

    Thank a lot :)
    Last edited by Daniil; Oct 09, 2012 at 10:41 AM. Reason: [CLOSED]
  2. #2
    Hi @CarpFisher,

    No, there is no such config on the node level.

    Please use TreeView BeforeDrop event.

    Example
    <ext:TreeView runat="server">
        <Plugins>
            <ext:TreeViewDragDrop runat="server" />
        </Plugins>
        <Listeners>
            <BeforeDrop Handler="if (node.getId() === 'someId') {
                                     data.copy = true || false;
                                 }" />
        </Listeners>
    </ext:TreeView>

Similar Threads

  1. [CLOSED] Copy text from "readonly" date and combo box fields
    By betamax in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 24, 2012, 2:56 PM
  2. Replies: 1
    Last Post: Jun 26, 2012, 11:29 AM
  3. [CLOSED] Hidden="true" behaves as Visible="false"
    By marco.morreale in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: May 28, 2012, 3:17 PM
  4. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  5. [CLOSED] DropDownField with Grow="true" and GrowMax="xxx"
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jan 12, 2012, 12:00 PM

Tags for this Thread

Posting Permissions