Footer cell vs content cell when there's a scrollbar

Hi

When the grid has a scrollbar, the footer's cell is a bit longer than the content's cell


See the dead space on the right? it is just below the scrollbar (content).
See that the numbers are centered but as they go right, they lose the center and the last number ($522.78) is not in the center anymore.
Happens on both chrome and Firefox. In the above case, the content cell's width is 95 while the footer cell's width is 96.
Happens with version 18.1.59.

8 Replies 1 reply marked as answer

VS Vignesh Sivagnanam Syncfusion Team July 10, 2020 12:46 PM UTC

Hi Amos, 

Greetings from Syncfusion support. 

We have validated the reported issue with given screenshot and tried to reproduce this issue but it was unsuccessful at our end.  Please the sample and screenshot for your reference. 



Screenshot for your reference: 

1. 
 

2. 
 


But , we have suspected that the reported issue might occur when you have apply any customization on the first cell of the aggregate row. Kindly share the following details to validate the reported issue at our end.  

  1. Share the full Grid code example.
  2. Share the details if you have applied any customization in the aggregate row.
  3. Share the sample or modified the given above sample with your reported issue if it is possible.

Above requested details will be helpful for us to validate the reported issue at our end and provide solution as soon as possible.  

Regards,
Vignesh Sivagnanam 


Marked as answer

AM Amos July 10, 2020 01:45 PM UTC

You are right, I have styling for the first aggregate column.
Following is the code. I tried changing your example but the problem didn't happen so I hope the following will give you a clue on what might be causing this issue on my side. Thanks.

            footerSum: function() {
                return {
                    template: Vue.component("Sum", {
                        template: "<span>{{formatCurrency(this.userInfo().settings.useCurrency[this.userInfo().itemName],data.Sum, 2)}}</span>",
                        data() {
                            return {
                                data: {},
                            };
                        },
                    }),
                };
            },

            footerCount: function() {
                return {
                    template: Vue.component("Count", {
                        template: "<span style='font-size: 13px'>{{data.Count}} assets</span>",
                        data() {
                            return {
                                data: {},
                            };
                        },
                    }),
                };
            },

                        <e-aggregates>
                            <e-aggregate>
                                <e-columns>
                                    <e-column type="Sum" field="total" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="january" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="february" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="march" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="april" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="may" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="june" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="july" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="august" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="september" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="october" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="november" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="december" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="january_ny" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Sum" field="february_ny" :footerTemplate="footerSum"></e-column>
                                    <e-column type="Count" field="item" :footerTemplate="footerCount"></e-column>
                                </e-columns>
                            </e-aggregate>
                        </e-aggregates>



        formatCurrency: (theCurrencyvaluedigits=> {
            if (theCurrency == nulltheCurrency = "USD";
            return new Intl.NumberFormat("en-US", { style: "currency"currency: theCurrencymaximumFractionDigits: digits != null ? digits : 4 }).format(
                value
            );
        },



VS Vignesh Sivagnanam Syncfusion Team July 13, 2020 11:36 AM UTC

Hi Amos, 

We tried to reproduce the reported problem by creating a sample with the provided code , but we could not face the problem from our end. We suspect It caused by, if you apply any padding customization in the aggregate column. We attaching the sample which we have tried your code example. Please refer the below sample and the screenshot for your reference, 


Screenshot for your reference: 
 
1. 
 

2. 
 

If you have faced same issue again, kindly share the following details to validate the reported issue at our end.  

  1. Share the full Grid sample with the reported issue.
  2. Share the Hosted link of the sample.
  3. If possible try to reproduce the reported issue in provided sample and get back to us.

Above requested details will be helpful for us to validate the reported issue at our end and provide solution as soon as possible.  

Regards, 
Vignesh Sivagnanam 



AM Amos July 13, 2020 02:17 PM UTC

I must say that I'm completely lost with this one.

I have 2 (other) pages with a very complex grids and they both work as expected.
There is one specific page, with 2 grids and both have the same problem with the footer.
I even started a brand new page and just added one simple grid and the problem is there...
The other 2 pages? Are still working ok...
Here is how it looks, the simple grid with one column and footer (notice the 2 arrows)


Here is the code
<ejs-grid ref="gridObj" :dataSource="gridData" height="500px" :dataBound="dataBound">
            <e-columns>
                <e-column field="total" type="number" headerText="Total" textAlign="center" />
            </e-columns>
            <e-aggregates>
                <e-aggregate>
                    <e-columns>
                        <e-column type="Sum" field="total"></e-column>
                    </e-columns>
                </e-aggregate>
            </e-aggregates>
        </ejs-grid>

I didn't even put any styling but even with bootstrap4 and material it happens...


AM Amos July 13, 2020 08:27 PM UTC

I noticed something:

This is taken from your project:
<div class="e-gridfooter e-footerpadding"><div class="e-summarycontent"><table class="e-table" cellspacing="0.25px" role="grid" id="grid_276042547_1_footer_table">

This is taken from my project
<div class="e-gridfooter"><div class="e-summarycontent"><table class="e-table" cellspacing="0.25px" role="grid" id="grid_337215067_0_footer_table">

As you can see, e-footerpadding is missing from my project and that class has padding: 14px which is exactly the scrollbar width.
So the question would be: what might be causing that element to be missing?


VS Vignesh Sivagnanam Syncfusion Team July 14, 2020 02:29 PM UTC

Hi Amos 
Thanks for the update 
We have tried to reproduce reported but it was unsuccessful at our end.Also we need some clarification with your code and customisation. So we can setup a web meeting to look on to the problem. Please let us know your availability for web meeting. We will make every effort to have this scheduled on a date and time of your convenience.  
Regards, 
Vignesh Sivagnanam 



AM Amos July 14, 2020 02:39 PM UTC

Thanks, please see the incident I opened.


RR Rajapandi Ravi Syncfusion Team July 15, 2020 01:27 PM UTC

Hi Amos, 

Thanks for the update 

We have send you the meeting invite in your created incident. After the meeting we will split that incident and create a separate incident for Grid query. 

Regards,
Rajapandi R 


Loader.
Up arrow icon