Announcement

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

    Double-click on multi-select SelectItem

    Dear experts,

    I'm trying to configure a multi-select SelectItem control that also supports double-click. The documentation says, I quote, "If you need to work with doubleClick events, you can disable this default behavior by explicitly setting formItem.pickListProperties.noDoubleClicks: false."

    How do I do this in SmartGWT, i.e. in Java? The setPickListProperties() method takes a ListGrid as a parameter...

    A related question: does SmartGWT include a single-select control that displays available items as a scrollable list, *not* as a drop-down?

    Best,
    Michał

    #2
    ListGrid's superclass Canvas has a setNoDoubleClicks() method.

    There's no built-in single-select as a scrolling list but you could make one via embedding a ListGrid in a CanvasItem (see CanvasItem docs and samples).

    Comment


      #3
      Hi,

      Thank you for the answer.

      How do I call the setNoDoubleClicks() method from within a ListItem? Do I actually have to create my own ListGrid that will be displayed as the scrollable list? Is that how it works?

      Best,
      Michał

      Comment

      Working...
      X