Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext GWT Premium Member
    Join Date
    Jun 2008
    Posts
    221
    Vote Rating
    0
    nyklogistics is on a distinguished road

      0  

    Default [FIXED] Selected Tree Item not Shown as Selected After Reordering the Tree Item

    [FIXED] Selected Tree Item not Shown as Selected After Reordering the Tree Item


    Regarding to this demo (http://extjs.com/examples-dev/explor...reorderingtree), the selected item is not shown as selected after reordering the tree item. Actually, by calling tree.getSelectionModel().getSelectedItem(), it returns non-null model.
    (I have tested in firefox, chrome and IE8)

  2. #2
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    The previously selected item was not cleared on remove. Fixed in RC1.

  3. #3
    Ext GWT Premium Member
    Join Date
    Jun 2008
    Posts
    221
    Vote Rating
    0
    nyklogistics is on a distinguished road

      0  

    Default


    The moving item is unselected when I drop it down. Should I select the dropped item again? If so, how can I get the previous selected item since I got null when I call tree.getSelectionModel().getSelectedItem() in the dragDrop() method of TreePanelDragTarget DNDListener.

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You could store the selection before startign the drag (for example in a listener) and restore it on a drop.

  5. #5
    Ext GWT Premium Member
    Join Date
    Jun 2008
    Posts
    221
    Vote Rating
    0
    nyklogistics is on a distinguished road

      0  

    Default


    Yes, I can select in this way. But, visually, it is not selected. It remains white in color.
    Below is my code:

    Code:
    		TreePanelDragSource source = new TreePanelDragSource(menuTreePanel);
    		source.addDNDListener(new DNDListener() {
    
    			ModelData sel;
    
    			@Override
    			public void dragStart(DNDEvent e) {
    				sel = ((TreePanel) e.getComponent()).getSelectionModel()
    						.getSelectedItem();
    				if (sel != null
    						&& sel == ((TreePanel) e.getComponent()).getStore()
    								.getRootItems().get(0)) {
    					e.setCancelled(true);
    					e.getStatus().setStatus(false);
    					return;
    				}
    				super.dragStart(e);
    			}
    
    			@Override
    			public void dragDrop(DNDEvent e) {
    				((TreePanel) e.getComponent()).getSelectionModel().select(
    						false, sel);
    				super.dragDrop(e);
    			}
    
    		});

  6. #6
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    You have to to this after the dropping is done. Currently you select it before it.

Thread Participants: 2

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