这是我的代码片段:
final ListGrid subscriberGrid = new ListGrid();
subscriberGrid.setWidth(500);
subscriberGrid.setHeight(224);
subscriberGrid.setShowAllRecords(true);
subscriberGrid.setSelectionType(SelectionStyle.SIMPLE);
subscriberGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
ListGridField fnField = new ListGridField("fn", "First Name");
ListGridField lnField = new ListGridField("ln", "Last Name");
ListGridField emailField = new ListGridField("email", "E-mail");
subscriberGrid.setFields(fnField, lnField, emailField);
如何为其输入值?我尝试启动 ListGridRecord[],但无法正确填充任何值。我也尝试过使用 Javascript 对象,但这也给了我一个错误。谷歌搜索也没有返回令人满意的结果。
TIA。