JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Data Grid The summary is not visible in the grid.(or bug?)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #108660
    innosoft
    Participant

    HI~

    I added a summary row to the grid, and an empty row is added, but the content is not visible.

    grid setting script:

    window.Smart(“#statusGrid”,
    class {
    getproperties() {
    return {
    dataSource:newwindow.Smart.DataAdapter({
    dataSource:data,
    }),
    locale:”ko”,
    layout: {
    columnHeight:40,
    rowHeight:’auto’,
    allowCellsWrap:true
    },
    summaryRow: {
    visible:true
    },
    columns: [
    {
    label:’Delv Date’,
    dataField:’DelvDate’,
    align:”center”,
    allowEdit:false,
    visible:true,
    cellsAlign:”center”,
    dataType:”string”,
    width:120,
    },
    {
    label:’Delv No’,
    dataField:’DelvNo’,
    align:”center”,
    cellsAlign:”center”,
    width:160,
    },
    { label: ‘Type’, dataField: ‘SMDelvTypeName’, align: “center”, cellsAlign: “center”, width:100,},
    { label: ‘Status’, dataField: ‘SMDelvInTypeName’, align: “center”, cellsAlign: “center”, width:100,},
    { label: ‘Item Name’, dataField: ‘ItemName’, align: “center”, cellsAlign: “center”, width:400,},
    { label: ‘Item No’, dataField: ‘ItemNo’, align: “center”, cellsAlign: “center”, width:120, },
    { label: ‘Unit’, dataField: ‘UnitName’, align: “center”, cellsAlign: “center”, width:100, },
    { label: ‘Qty’, dataField: ‘Qty’, align: “center”, cellsAlign: “center”, width:100, summary:[“sum”],
    template:(object) => {
    object.template=parseInt(object.row.data.Qty).toLocaleString()
    },
    },
    { label: ‘Amount’, dataField: ‘CurAmt’, align: “center”, cellsAlign: “center”, width:100,
    template:(object) => {
    object.template=parseInt(object.row.data.CurAmt).toLocaleString()
    },
    },
    { label: ‘VAT’, dataField: ‘CurVAT’, align: “center”, cellsAlign: “center”, width:100,
    template:(object) => {
    object.template=parseInt(object.row.data.CurVAT).toLocaleString()
    },
    },
    { label: ‘Total Amount’, dataField: ‘TotCurAmt’, align: “center”, cellsAlign: “right”, width:300, summary:[“sum”],
    template:(object) => {
    object.template=parseInt(object.row.data.TotCurAmt).toLocaleString()
    },
    },
    ],

    };
    }
    }
    );

     

    columns script:

    { label: ‘Total Amount’, dataField: ‘TotCurAmt’, align: “center”, cellsAlign: “right”, width:300, summary:[“sum”],
    template:(object) => {
    object.template=parseInt(object.row.data.TotCurAmt).toLocaleString()
    },
    },

     

    sample source download link:
    https://innosoft2002-my.sharepoint.com/personal/yhzo_inno-soft_co_kr/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fyhzo%5Finno%2Dsoft%5Fco%5Fkr%2FDocuments%2FSmartGridDemo%2Fsummary%5F2023%2E09%2E08%2Ezip&parent=%2Fpersonal%2Fyhzo%5Finno%2Dsoft%5Fco%5Fkr%2FDocuments%2FSmartGridDemo&ga=1

    • This topic was modified 9 months, 1 week ago by innosoft.
    • This topic was modified 9 months, 1 week ago by innosoft.
    #108669

    Hi,

    This is happening because you have set the locale to ‘ko’ but you haven’t assigned any messages to the grid.
    Please visit this article to see how to correctly setup localization:
    https://www.htmlelements.com/docs/grid-localization/

    I hope this helps!

    Best Regards,
    Svetoslav Borislavov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.