JavaScript
const productData = [
{ id: 1, product: 'FlexGrid Pro', qty: 12, price: 350000, discount: 5 },
{ id: 2, product: 'FlexChart Std', qty: 7, price: 180000, discount: 0 },
{ id: 3, product: 'OLAP Engine', qty: 3, price: 950000, discount: 10 },
{ id: 4, product: 'InputPanel', qty: 25, price: 95000, discount: 3 },
];
const grid = new wijmo.grid.FlexGrid('#validGrid', {
itemsSource: productData,
columns: [
{ binding: 'id', header: 'ID', isReadOnly: true, width: 55 },
{ binding: 'product', header: '제품명', isReadOnly: true, width: 150 },
{ binding: 'qty', header: '수량', format: 'n0', width: 90 },
{ binding: 'price', header: '단가 (원)', format: 'n0', width: 130 },
{ binding: 'discount', header: '할인율 (%)', format: 'n1', width: 110 },
]
});