Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

ListGrid selectItem default value

$
0
0
I have a listGrid which has a column of selectItems. The user can choose "Yes", "No" and "Complete" from the drop down. I would like to set the default value to to "No" using selectItem.setDefaultValue("No");

Here is my code that makes this column.

ListGridField listGridField = new ListGridField("");
SelectItem selectItem = new SelectItem();
selectItem.setValueMap("Yes", "No", "Complete");
selectItem.setDefaultValue("No");
listGridField.setEditorProperties(selectItem);

my problem is that only the first record is set to "No" and the rest remain blank.

Attached Images
File Type: png wizard2.png (41.2 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles