PDA

View Full Version : Single select ListField



codingismy11to7
17 Mar 2011, 3:12 PM
I'm pretty new to GXT, so this might be a dumb question...

Is there a way to (out of the box) have a ListField that only allows a single item to be selected? I could do it with selection listeners and whatnot, but it seems like this would be a common-enough case that there'd be an easier way to do it...

micgala
18 Mar 2011, 2:02 AM
Hi. Set your own ListViewSelectionModel to the ListView, configured with SelectionMode.SINGLE.

Regards,
Michel.

codingismy11to7
18 Mar 2011, 2:49 AM
Argh, I was so close (was looking for a Single Select SelectionModel). Thanks.