I would like to merge multiple footer column to get a right-aligned column footer to span or merge a couple columns to the left. I didn't find any post like that in this forum. I came across this approach for Kendo UI for jQuery: https://docs.telerik.com/kendo-ui/knowledge-base/grid-merge-footer-cells
Since it described using styles to achieve the effect of merging footer cells, I figured it would work for Kendo UI for MVC as well. Since I don't want/need any cell boarders in the footer, I set the .k-footer-template td border to none. I put the style block below just after my @model declaration line in the view.
<style>
.k-footer-template td {
border
:
none
;
}
.k-footer-template td:nth-child(
4
) {
overflow
:
visible
;
white-space
:
nowrap
;
}
</style>
However, the above has no effect on the appearance; I still see each footer cell's border and my sum total of the 4th column (assuming td:nth-child is zero-based) is limited to its cell. Why are the above styles not being applied?
2nd request for help: I want to format the sum total of a column with comma delineated number formatting: #,##0.00
Here is my client footer template:
.ClientFooterTemplate(
"<div style='float: right'>#= kendo.toString(sum, '0,000.00') #</div>"
);
/*#,##0.00 didn't work; nothing appears in the cell*/
As you can see, I ended up using 0,000.00 instead of #,##0.00. The latter works in c# formatting of numeric strings, but I'm guessing the # symbol is interfering with the #= # syntax. My work-around isn't acceptable as it shows "0," in front of numbers less than 1,000 (e.g., 0,999.99). How can I apply a custom number format such as #,##0.00?