Hi Isomorphic. I am implementing a sub class of SelectItem and I want to set the selected item count as the SelectItem value that's visible on the collapsed control (see prototype image below), instead of the default list of values that is usually shown (and which in this case will almost always be clipped because of the amount of items that can be selected at any given time):
Some background: I am writing a simulator and this SelectItem allows to select the elements that will be included in one analysis, which could be just a few, many or even all of them (depending on the scope defined by the user).
So the specific question is if there's a way to get this behavior "out of the box", other than using a trigger that fires every time the SelectItem loses focus, and then use SelectItem.setValue("n buffers selected") to set the value? Is there a method that I can override to get this summary message instead of the whole (clipped) value list? Or the trigger + setValue method is the correct approach here?
Thanks
ps. I am using SmartGWT 6.0-p20160531.
Some background: I am writing a simulator and this SelectItem allows to select the elements that will be included in one analysis, which could be just a few, many or even all of them (depending on the scope defined by the user).
So the specific question is if there's a way to get this behavior "out of the box", other than using a trigger that fires every time the SelectItem loses focus, and then use SelectItem.setValue("n buffers selected") to set the value? Is there a method that I can override to get this summary message instead of the whole (clipped) value list? Or the trigger + setValue method is the correct approach here?
Thanks
ps. I am using SmartGWT 6.0-p20160531.
Comment