例如:定义 spread.isPaintSuspended(true);
sheet = spread.getSheet(0);
sheet.autoGenerateColumns = false;
sheet.setDataSource(retJson);
var combo = new GcSpread.Sheets.ComboBoxCellType();
combo.editable(false).items([{ text: "原油类", value: "1" }, { text: "产品类", value: "2" }, { text: "润滑油类", value: "3" }]);
var colInfos = [
{ name: "OilType", displayName: "类型", size: 150, cellType: combo }
];
sheet.bindColumns(colInfos);
spread.isPaintSuspended(false);
类似于这样进行绑定,发现如果绑定数据的时候 当value ="1"的时候,页面上显示也是"1",不能显示“原油类”
请问是哪里设定不对吗
|
|