我是使用JavaScript的SmartClient的新手。当我创建一个listGrid时,使用了一个backgroundColor为“ red”的基类,然后动态地将SelectionAppearance从“ rowStyle”更改为“ checkbox”,其中listbackgroundColor从红色更改为蓝色(默认),这是我的摘录
var groupAppliedDiscList = isc.ListGrid.create({
ID: "groupAppliedDiscList",
selectedRecordsArr: [],
selectionType: "simple",
name: "groupAppliedDiscList",
height: "100%",
width: "100%",
showHeader: false,
selectionAppearance: "rowStyle",
canResizeFields: true,
virtualScrolling: false,
showRecordComponents: true,
showRecordComponentsByCell: true,
canRemoveRecords: false,
recordComponentPoolingMode: "recycle",
showBackgroundComponents : true,
baseStyle: "cell_1",
canSelectCells: false,
backgroundColor: "transparent",
showRowNumbers: false,
fields: [
{name: "Image",type: "text",showIf: "false"},
{name: "ItemDescription", type: "text",showIf: "false"},
{name: "Quantity", type: "text",showIf: "false"},
{name: "Price", type: "text",showIf: "false"},
{name: "Disc", type: "text",showIf: "false"},
{name: "ExtPrice", type: "text",showIf: "false"},
{name: "DiscountedPrice", type: "text",showIf: "false"},
{name: "discountItemLine", width: "*", align: "left"}
]
});
预先感谢, Swathi。