Announcement

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

    SelectItem display issue with setMultiple(true)

    After changing from smartgwtee.jar to latest smartgwtpower.jar the SelectItems with setMultiple(true) are displaying as SelectItems with entries containing checkboxes. I am attaching a photo for visual. Has something changed and how can I change this behavior back to normal?

    I have attached three pictures, the first two show the new display behavior and the third photo show the original(how i want it to display) behavior.

    Here is the code for one of the SelectItems in the pictures:

    Code:
      officeSel = new SelectItem("officeId", "Office");
      officeSel.setOptionDataSource(DataSource.get("Office"));
      officeSel.setValueField("officeId");
      officeSel.setDisplayField("officeName");
      officeSel.setEmptyDisplayValue("Pick An Office");
      officeSel.setWidth(fieldWidthStd);
      officeSel.setRequired(Boolean.TRUE);
    Attached Files

    #2
    To change back, use selectItem.setAttribute("multipleAppearance", "grid"). The finalized version of this feature will have an actual setter.

    Comment

    Working...
    X