1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

EasyUI : Drag and drop treeview / tree grid

Discussion in 'jQuery' started by DanInManchester, Oct 1, 2011.

  1. #1
    I'm using the EasyUI framework which is perfect but the built in dnd option on the treeview does not give me what I want and it does not seem to be customisable.

    The main floor with the built in feature seems to be that there is no way to trap the drop action that allows you to cancel it.
    onDrop is after the completion.

    Secondly I only want to append nodes by dragging.
    The built in DnD allows reordering within the same parent node.
    I need to be able to prevent or cancel the drop if the node is dropped on to the same parent .

    When the new node is appended it needs to be inserted alphabetically.

    The tree grid does not even support drag and drop and I can't seem to implement it manually using the library.

    I would imagine if I can manually code dnd using the library it should work for either.

    Any pointers?
     
    DanInManchester, Oct 1, 2011 IP