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
    May 2013
    Posts
    6
    Vote Rating
    0
    bessette is on a distinguished road

      0  

    Default Unanswered: ListView Can only select one item.

    Unanswered: ListView Can only select one item.


    Hi

    I have a listfield with a listview but the problem is i can only select one item. Any help would be appreciated.

    Here's part of my uibinder

    Code:
    <gxt:Window ui:field="window" bodyBorder="true" focusWidget="{closeButton}" minHeight="200" modal="true" onEsc="false" pixelSize="275, 200" resizable="false" headingText="OGP WPS">
            <gxt:ContentPanel headerVisible="false">
                <c:HBoxLayoutContainer enableOverflow="false" hBoxLayoutAlign="BOTTOM">
                    <c:child layoutData="{leftLayoutData}">
                        <f:FieldLabel labelAlign="TOP" text="Name">
                            <f:widget>
                                <f:ListField ui:field="wpsListField" allowTextSelection="false" pixelSize="150, 120" title="Double click name to see description"/>
                            </f:widget>
                        </f:FieldLabel>
                    </c:child>

    here's snippets my class

    Code:
     @UiField Window window;
        @UiField TextButton openButton;
        @UiField TextButton removeButton;
        @UiField TextButton closeButton;
     @UiField(provided = true) final ListField<WpsExecuteData, String> wpsListField;
    
    .......
    
      interface WpsExecuteDataProperties extends PropertyAccess<WpsExecuteData> {
            ModelKeyProvider<WpsExecuteData> id();
            @Path("name")
            LabelProvider<WpsExecuteData> nameLabel();
            @Path("name")
            ValueProvider<WpsExecuteData, String> nameProp();
          } 
    .........
    
    /**
         * 
         */
        WpsExecuteDataProperties data = GWT.create(WpsExecuteDataProperties.class);
      
       private final ListStore<WpsExecuteData> wpsStore;
       private List<WpsExecuteData> wps;
       private ListView<WpsExecuteData, String> view;
        /**
         * Creates a new {@code OpenDialogBox}.
         * @param catalogService the catalog service proxy
         * @param parent the parent {@code PST}
         * @param userid the user id
         * @param wps the list of network wps
         * @param placeFactory factory for generating new UI components
         */
        public OpenDialogBox(OgpBuilder parent) {
            this.parent = parent;
            this.wpsStore = new ListStore<WpsExecuteData>(this.data.id());
            this.view =  new ListView<WpsExecuteData, String>(this.wpsStore, this.data.nameProp());      
            this.wpsListField = new ListField<WpsExecuteData, String>(this.view);
            lookupAllNames();
           this.view.getSelectionModel().setSelectionMode(SelectionMode.SIMPLE);
            uiBinder.createAndBindUi(this);

  2. #2
    Ext GWT Premium Member icfantv's Avatar
    Join Date
    Sep 2011
    Location
    Superior, CO
    Posts
    411
    Answers
    20
    Vote Rating
    21
    icfantv will become famous soon enough icfantv will become famous soon enough

      0  

    Default


    SelectionMode.SIMPLE should work. Is there a way to extract out your ListView and display it on its own? The ListField is essentially just a wrapper so I don't see it doing anything to muck with your selection model.

    What happens if you don't set the selection mode? SelectionMode.MULTI is the default.

Thread Participants: 1