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.
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.