Announcement

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

    SelectItem Display Issue

    Hello,

    We just upgraded to SGWTEE2.3 and started experiencing issues with displaying SelectItems.
    Here is the example code...

    Code:
    	private final DynamicForm dynamicForm = new DynamicForm();
    
    	public void onModuleLoad() {
    		ListGrid prototypeGrid = new ListGrid();
    		prototypeGrid.setCanMultiSort(false);
    
    		// apply the prototype to the ListGrid class
    		ListGrid.setDefaultProperties(prototypeGrid);
    		
    		dynamicForm.setAutoFocus(true);
    		dynamicForm.setWidth(210);
    
    		final SelectItem selectItem = new SelectItem("Animal");
    		selectItem.setValueMap("Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse");
    		dynamicForm.setFields(selectItem);
    		dynamicForm.draw();
    	}
    If we remove prototype instance of ListGrid SelectItem is displayed properly ...

    Code:
    	private final DynamicForm dynamicForm = new DynamicForm();
    
    	public void onModuleLoad() {
    		dynamicForm.setAutoFocus(true);
    		dynamicForm.setWidth(210);
    
    		final SelectItem selectItem = new SelectItem("Animal");
    		selectItem.setValueMap("Cat", "Dog", "Giraffe", "Goat", "Marmoset", "Mouse");
    		dynamicForm.setFields(selectItem);
    		dynamicForm.draw();
    	}
    Included is the screenshot of select item.

    Thanks
    Attached Files

    #2
    Did this work before or is it something you're just now trying out? Because we wouldn't recommend doing this - if you want to disable multisort, set the DataSource-level flag. There's client-side multisort support and some components use it internally.

    Comment


      #3
      It is not related to multisort .
      Even if I add just this to my onModuleLoad

      Code:
      		ListGrid prototypeGrid = new ListGrid();
      
      		// apply the prototype to the ListGrid class
      		ListGrid.setDefaultProperties(prototypeGrid);
      it causes all select items not to display properly.

      Thanks,
      Stonebranch

      Comment


        #4
        This has been fixed. Please pick up the next nightly build.

        Sanjiv

        Comment

        Working...
        X