How to handle Array Object in List Grid? [SmartGWT]

173 Views Asked by At

I have a SelectItem which was set to multiple as the editor for the column. The values are saved in a String[] object.

As the editor is on non-edit mode, it shows the memory address of that object. How could I handle it to show the value in the array, or is there anywhere I can set for this column to always show its editor?

example image

1

There are 1 best solutions below

0
On

Using the java class Arrays, a static toString method is provided for you to print the content of an array.

String arrayAsString = Arrays.toString(inputArray);