小编Dat*_*der的帖子

格式化Kendo Grid显示美元符号并允许最多两位小数?

我有一个像我这样创建的kendo Grid:

function drawInvoiceTable() {
    invoiceTable = $('#invoiceGrid').kendoGrid({
        sortable: true,
        pageable: true,
        dataSource: {
            data: getData(),
            pageSize: 10,
            schema: {
                model: {
                    id: 'test',
                    fields: {
                        active: false
                    }
                }
            }
        },
        columns: [
             { template: "<input type='checkbox' id='chkInvoices' class='invoiceDisplay' name='chkInvoices' #= active ? checked='checked' : '' #/>", width: 30 },
            { field: 'accountNumber', title: 'Account', attributes: { 'class': 'accountnumber' }, sortable: true },
            { field: 'transactionDate', title: 'Trans Date', attributes: { 'class': 'transdate' }, width: 100, sortable: true }, …
Run Code Online (Sandbox Code Playgroud)

kendo-ui kendo-grid

13
推荐指数
1
解决办法
3万
查看次数

标签 统计

kendo-grid ×1

kendo-ui ×1