0
填充ListGridFields這是我的代碼片段:在SmartGWT的
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。