Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SelectItem with multiple selection

    Hello,

    we are using now SmartGWTPro 13.10.2013. Since end of september, SelectItems with multiple selection don't work correctly.

    If you select multiple records in the picklist, close the picklist and reopen it, only the last selected record is selected.

    You can reproduce it with your Multi-Select example in the showcase.

    I think, the problem was inserted in ISCGrid.js line 16781:
    Code:
     
            // Even if we don't have screenReader mode enabled, hilite the current keyboard
            // target row on focus (but don't trigger a click or select it).
            // Also call clearLastHilite() on blur, so we don't show orphaned "over"
            // styling when the user takes focus from the grid
            } else {
                if (hasFocus) {
                    if (editCell == null) {
                        parent._navigateToNextRecord(1, true, "focus");
                    }
                } else {
                    parent.clearLastHilite();
                }
    _navigateToNextRecord make only single select.

    It was an urgent problem. Please fix it asap.

    Regards

    Peter

    #2
    Hi Peter
    We're not able to reproduce this problem.

    Could you verify which exactly build you're using (as reported by evaluating isc.version in the developer console), and show us how to reproduce it (either in one of the shipped examples, if the problem occurs for you there, or if not, in a simple standalone test case we can run)

    Thanks
    Isomorphic Software

    Comment


      #3
      Hello,

      i'm using SmartGWTPro v8.3p_2013-10-13/Pro Deployment 2013-10-13 and can reproduce it with the code of the Multi-Select example in the showcase.

      http://www.smartclient.com/smartgwt/showcase/#multi_select_combobox_category


      Code:
       
      	private void testSelectItem() {
              DynamicForm selectComboForm = new DynamicForm();  
              selectComboForm.setWidth(450);  
        
        
              final SelectItem selectItemMultipleGrid = new SelectItem();  
              selectItemMultipleGrid.setTitle("Select Multiple (Grid)");  
              selectItemMultipleGrid.setMultiple(true);  
              selectItemMultipleGrid.setMultipleAppearance(MultipleAppearance.GRID);  
              selectItemMultipleGrid.setValueMap("Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse");  
        
              final SelectItem selectItemMultiplePickList = new SelectItem();  
              selectItemMultiplePickList.setTitle("Select Multiple (PickList)");  
              selectItemMultiplePickList.setMultiple(true);  
              selectItemMultiplePickList.setMultipleAppearance(MultipleAppearance.PICKLIST);  
              selectItemMultiplePickList.setValueMap("Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse");  
        
              LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>();  
              valueMap.put("US", "<b>United States</b>");  
              valueMap.put("CH", "China");  
              valueMap.put("JA", "<b>Japan</b>");  
              valueMap.put("IN", "India");  
              valueMap.put("GM", "Germany");  
              valueMap.put("FR", "France");  
              valueMap.put("IT", "Italy");  
              valueMap.put("RS", "Russia");  
              valueMap.put("BR", "<b>Brazil</b>");  
              valueMap.put("CA", "Canada");  
              valueMap.put("MX", "Mexico");  
              valueMap.put("SP", "Spain");  
        
              final SelectItem selectItemWithIcons = new SelectItem();  
              selectItemWithIcons.setMultiple(true);  
              selectItemWithIcons.setTitle("Select");  
              selectItemWithIcons.setHint("<nobr>Multi Select with icons</nobr>");  
              selectItemWithIcons.setValueMap(valueMap);  
              selectItemWithIcons.setImageURLPrefix("flags/16/");  
              selectItemWithIcons.setImageURLSuffix(".png");  
              LinkedHashMap<String, String> valueIcons = new LinkedHashMap<String, String>();  
        
              valueIcons.put("US", "US");  
              valueIcons.put("CH", "CH");  
              valueIcons.put("JA", "JA");  
              valueIcons.put("IN", "IN");  
              valueIcons.put("GM", "GM");  
              valueIcons.put("FR", "FR");  
              valueIcons.put("IT", "IT");  
              valueIcons.put("RS", "RS");  
              valueIcons.put("BR", "BR");  
              valueIcons.put("CA", "CA");  
              valueIcons.put("MX", "MX");  
              valueIcons.put("SP", "SP");  
              selectItemWithIcons.setValueIcons(valueIcons);  
        
        
              selectComboForm.setItems(selectItemMultipleGrid, selectItemMultiplePickList, selectItemWithIcons);  
        
              selectComboForm.draw();  	
          }

      Peter
      Attached Files

      Comment


        #4
        We've made a change to address this issue.
        Please try the next nightly build dated Oct 16 or above

        Regards
        Isomorphic Software

        Comment


          #5
          The bug is fixed in the version from Oct 16 2013.

          Thank you

          Peter

          Comment

          Working...
          X