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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi