We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem with grid data when it's override

Hi, I have a grid with grouping columns, but, when I resize window and the value override the size of the column, the value of the sum does't ajust.

This is my grid and my code:


My grid code:

<ej-grid id="GridT" allow-resizing="true" allow-multiple-exporting="true" toolbar-click="toolbarClick1" is-responsive="true" allow-grouping="true"
             locale="@(System.Globalization.CultureInfo.CurrentCulture.Name.ToString())">
        <e-group-settings caption-format="{{:key}}" show-drop-area="false" grouped-columns="GroupedCols"></e-group-settings>
        <e-toolbar-settings show-toolbar="true" toolbar-items=@(new List<string>() {"excelExport" })></e-toolbar-settings>
        <e-columns>
            <e-column field="ProductAndRate" header-text="@Localizer["Product"].Value" text-align="Left" width="200" template-id="#ppTemplateDetails"></e-column>
            <e-column field="PClass" header-text="ProductClass" visible="false"></e-column>
            <e-column field="PreviousBalance" header-text="@Localizer["Previous Balance"].Value" text-align="Right" format="{0:N2}"></e-column>
            <e-column field="BoughtAmount" header-text="@Localizer["Bought Amount"].Value" text-align="Right" format="{0:N2}"></e-column>
            <e-column field="CalculatedValuation" header-text="@Localizer["Valuation Amount"].Value" text-align="Right" format="{0:N2}"></e-column>
            <e-column field="PaidRevenueAmount" header-text="@Localizer["Paid Amount"].Value" text-align="Right" format="{0:N2}"></e-column>
            <e-column field="OtherIncome" header-text="@Localizer["Other Income"].Value" text-align="Right" format="{0:N2}"></e-column>
            <e-column field="SoldAmount" header-text="@Localizer["Sold Amount"].Value" text-align="Right" format="{0:N2}"></e-column>
            <e-column field="BalanceAmount" header-text="@Localizer["Final Balance"].Value" text-align="Right" format="{0:N2}"></e-column>
            <e-column field="XIRR_value" header-text="@Localizer["TIR"].Value" text-align="Right" format="{0:P2}"></e-column>
        </e-columns>
        <e-summary-rows>
            <e-summary-row title="Total" show-total-summary="true" show-caption-summary="true">
                <e-summary-columns>
                    <e-summary-column summary-type="Sum" format="{0:N2}" display-column="PreviousBalance" datamember="PreviousBalance" />
                    <e-summary-column summary-type="Sum" format="{0:N2}" display-column="BoughtAmount" datamember="BoughtAmount" />
                    <e-summary-column summary-type="Sum" format="{0:N2}" display-column="CalculatedValuation" datamember="CalculatedValuation" />
                    <e-summary-column summary-type="Sum" format="{0:N2}" display-column="PaidRevenueAmount" datamember="PaidRevenueAmount" />
                    <e-summary-column summary-type="Sum" format="{0:N2}" display-column="OtherIncome" datamember="OtherIncome" />
                    <e-summary-column summary-type="Sum" format="{0:N2}" display-column="SoldAmount" datamember="SoldAmount" />
                    <e-summary-column summary-type="Sum" format="{0:N2}" display-column="BalanceAmount" datamember="BalanceAmount" />
                </e-summary-columns>
            </e-summary-row>
        </e-summary-rows>
    </ej-grid>

Thanks.

3 Replies

VN Vignesh Natarajan Syncfusion Team March 7, 2019 05:25 AM UTC

  
Hi Neider, 
 
Thanks for using Syncfusion products.  
 
Query : when I resize window and the value override the size of the column, the value of the sum does't ajust. 
 
From your query, we understand that you are facing issue with groupCaption summary. We have prepared a sample as per your suggestion and we are also able to reproduce the issue on our side. To avoid the issue we suggest you to apply the following css to the Caption Summary like in the below code example. 
 
 
<style> 
 
  .e-groupcaptionsummary{ 
          word-wrap:break-word; 
  } 
 
</style> 
 
Please get back to us if you have further queries.   
 
Regards, 
Vignesh Natarajan 
 



NE Neider March 11, 2019 03:07 PM UTC

It works, thanks :)


VN Vignesh Natarajan Syncfusion Team March 12, 2019 03:35 AM UTC

Hi Neider, 

Thanks for the update. 

We are glad to hear that your query has been resolved by our solution. 

Please get back to us if you have further queries. 

Regards, 
Vignesh Natarajan. 


Loader.
Live Chat Icon For mobile
Up arrow icon