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
    Ext User
    Join Date
    Apr 2008
    Posts
    14
    Vote Rating
    0
    yleguern is on a distinguished road

      0  

    Default [FIXED] Grid selection model does not fire selection event when mode is SINGLE

    [FIXED] Grid selection model does not fire selection event when mode is SINGLE


    The grid selection model does not fire selection events when selection is empty and you select a row (when selection mode is SINGLE) :

    Code:
    public class App implements EntryPoint {
     
      public void onModuleLoad() {
     
       List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
      configs.add(new ColumnConfig("c1", "Column 1", 150));
      configs.add(new ColumnConfig("c2", "Column 2", 150));
      ColumnModel cm = new ColumnModel(configs);
     
      ListStore<MyModel> store = new ListStore<MyModel>();
      for (int i = 0; i < 20; i++) {
       store.add(new MyModel("c1-" + (i+1), "c2-" + (i+1)));
      }
     
      final Grid<MyModel> grid = new Grid<MyModel>(store, cm);
      grid.getSelectionModel().setSelectionMode(SelectionMode.SINGLE);
      grid.setBorders(true);
      grid.setSize(324, 300);  
      RootPanel.get().add(grid);
      final Text status = new Text();
      status.setStyleName("text");
      RootPanel.get().add(status);
     
      grid.getSelectionModel().addListener(Events.SelectionChange, new Listener<SelectionEvent<MyModel>>() {
       public void handleEvent(SelectionEvent<MyModel> in_event) {
        System.out.println("selection changed");
        status.setText("Selected item : " + (in_event.selection.size()>0?in_event.selection.get(0):"none"));
       }
      });
       }
     
     
      public static class MyModel extends BaseModel {
        public MyModel(String value1, String value2) {
          set("c1", value1);
          set("c2", value2);
        }
      }
    }
    My config :
    • gxt-1.1-alpha2
    • Windows XP
    • Host mode / Eclipse
    Thanks,
    Yann.

  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


    Fix is in SVN.

Thread Participants: 1