Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    5
    Vote Rating
    0
    palgaz is on a distinguished road

      0  

    Default Unanswered: Drag & Drop in a treeGrid

    Unanswered: Drag & Drop in a treeGrid


    Hi,
    Please is there anyway to get the source parent and the destination parent on dropping an object into a new destination ?
    Thank you,

  2. #2
    Sencha User
    Join Date
    Oct 2012
    Posts
    5
    Vote Rating
    0
    palgaz is on a distinguished road

      0  

    Default


    And also I have an other question, it's possible to do somes controles on dropping an object. For exemple check if the object is intanceof a SubType, if yes, then drop, else cancel the drop event

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
    DavGut is on a distinguished road

      0  

    Default


    up,
    I've got the exact same question and I didn't fin anyway to do it.

  4. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    7
    Vote Rating
    0
    DavGut is on a distinguished road

      0  

    Default


    I found a kind of solution in another post.

    You must override showFeedback in your TreeGridDropTarget.

    Then, in the method, you can use

    Code:
    com.sencha.gxt.widget.core.client.tree.Tree.TreeNode<? extends BaseDto> item = super
                                .getWidget().findNode(
                                        event.getDragMoveEvent().getNativeEvent().getEventTarget().<Element> cast());
    to find the target element, and if you want to forbid the drop, instead of calling the super you call :

    Code:
    // forbid the drop
                            status = -1;
                            activeItem = null;
                            appendItem = null;
                            Insert.get().hide();
                            event.getStatusProxy().setStatus(false);

Thread Participants: 1

Tags for this Thread