JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Data Grid › The summary is not visible in the grid.(or bug?)
- This topic has 1 reply, 2 voices, and was last updated 1 year, 2 months ago by svetoslav_borislavov.
-
AuthorPosts
-
September 8, 2023 at 7:25 am #108660innosoftParticipant
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()
},
},September 11, 2023 at 6:09 am #108669svetoslav_borislavovParticipantHi,
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 BorislavovSmart UI Team
https://www.htmlelements.com/ -
AuthorPosts
- You must be logged in to reply to this topic.