Announcement

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

    MultiComboBoxItem

    The ShowCase demo's some nice multi-select widgets, but as classical drop-down with checboxes and as a variable-height selection grid:
    http://www.smartclient.com/smartgwt/showcase/#form_controls_various

    However, in SmartGWT 3.1 these SelectItem customizations appears to have been replaced and deprecated in favor of an inferior MultiComboBoxItem which renders as a taglist:
    http://blog.isomorphic.com/announcing-smart-gwt-3-1-smartclient-8-3-release-candidate-new-features/

    Apart from the fact that I can not get this MultiComboBoxItem to function properly (only allows one selection and delete won't remve the one selected), is there a way to get the more classic look and feel, as the showcase demo's?

    #2
    There's no MultiComboBoxItem at that first URL. You might have meant the multiple *SelectItem* - whatever it is you like, there's a View Source button to allow you to get the code, and nothing has been "deprecated" (not sure where that came from..).

    The View Source button can also be used to get working code for the MultiComboBoxItem, by using the Showcase in the 4.0 SDK.

    Comment


      #3
      Solved

      Turns out those concrete examples are old (non 3.1 compliant) and methods etc. mutated. I found another showcase which is also done with SelectItem's "multiple select" mechanism:

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

      Comment


        #4
        Got it, SelectItem still works for multiple selections

        Originally posted by Isomorphic View Post
        There's no MultiComboBoxItem at that first URL.
        I never wrote MultiComboBoxItem, I wrote "nice multi-select widgets". ;)

        Originally posted by Isomorphic View Post
        You might have meant the multiple *SelectItem* - whatever it is you like, there's a View Source button to allow you to get the code, and nothing has been "deprecated" (not sure where that came from..).
        True; I was confused by having tried the MultiComboBox where methods names have definitely mutated since the example I found:

        http://code.google.com/p/smartgwt/source/browse/trunk/samples/showcase/src/com/smartgwt/sample/showcase/client/combobox/MultiComboBoxSample.java?r=1974

        The View Source button can also be used to get working code for the MultiComboBoxItem, by using the Showcase in the 4.0 SDK.
        4.0? Thought of adding forwarders such that it becomes more apparent which version a ShowCase runs on? I.e. latest http://www.smartclient.com/smartgwt/showcase/#form_controls_various could lead to http://www.smartclient.com/smartgwt/showcase/4.0/#form_controls_various

        Comment


          #5
          Looks like you found some work-in-progress source code directly in SVN. Use actual releases to avoid relying on APIs that aren't finalized.

          The Showcase reports it's version on startup during loading, and 4.0 also shows it under the example tree. It can also be determined from the Developer Console at any time.

          Comment

          Working...
          X