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.
Unfortunately, activation email could not send to your email. Please try again.

Export to pdf with group

Thread ID:

Created:

Updated:

Platform:

Replies:

127221 Nov 3,2016 08:06 AM Nov 16,2016 12:04 PM ASP.NET Web Forms 3
loading
Tags: Grid
Stefania Solari
Asked On November 3, 2016 08:06 AM

I have a grid with grouping like this:
                    <ej:Grid ID="ReportMovimentiGrid" runat="server" AllowPaging="True" AllowGrouping="true" IsResponsive="true" EnableResponsiveRow="true" OnServerPdfExporting="ReportMovimentiGrid_ServerPdfExporting" OnServerExcelExporting="ReportMovimentiGrid_ServerExcelExporting" Locale="it-IT">
                        <ToolbarSettings ShowToolbar="true" ToolbarItems="excelExport,pdfExport"></ToolbarSettings>
                        <GroupSettings EnableDropAreaAutoSizing="False" GroupedColumns="Ospite" ShowUngroupButton="false" ShowDropArea="false" ShowGroupedColumn="false"></GroupSettings>
                        <Columns>
                            <ej:Column Field="Ospite" HeaderText="Ospite" TextAlign="Left" Width="60" ForeignKeyField="value" ForeignKeyValue="text"  Tooltip= "#colTip"/>
                            <ej:Column Field="Progressivo" HeaderText="N° progressivo Registrazione" TextAlign="Left" Width="45" EditType="String" AllowEditing="false" />
                            <ej:Column Field="DataRegistrazione" HeaderText="Data Registrazione" Width="50" TextAlign="Left" Format="{0:dd/MM/yyyy}"
                                Type="string" Priority="2" AllowEditing="false">
                            </ej:Column>
                            <ej:Column Field="DataOperazione" HeaderText="Data Operazione" Width="50" TextAlign="Left" Format="{0:dd/MM/yyyy}"
                                Type="string" Priority="2" AllowEditing="true" EditType="Datepicker">
                            </ej:Column>
                            <ej:Column Field="TipoMovimentoId" HeaderText="Tipo Movimento" TextAlign="Left" Width="50" ForeignKeyField="value" ForeignKeyValue="text"  Tooltip= "#colTip"/>
                            <ej:Column Field="CausaleId" HeaderText="Causale Movimento" TextAlign="Left" Width="45" ForeignKeyField="value" ForeignKeyValue="text"  Tooltip= "#colTip"/>
                            <ej:Column Field="Descrizione" HeaderText="Descrizione Operazione" TextAlign="Left" Width="50" EditType="String"  Tooltip= "#colTip"/>
                            <ej:Column Field="Annotazioni" HeaderText="Annotazioni" TextAlign="Left" Width="50" EditType="String"  Tooltip= "#colTip"/>
                            <ej:Column Field="Importo" HeaderText="Importo" TextAlign="Right" Width="40" EditType="Numeric" Format="{0:C}"  />
                        </Columns>
                        <%--  <EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="Batch"></EditSettings>
                            <ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>--%>
                    </ej:Grid>
I have made a javascript file for the localization and it works fine: I have the text of the group localized. There is a problem with the localization when I export the grid in pdf or excel format: the group label is "Ospite: BARONE FILIPPO - 2 elementos" instead of "Ospite: BARONE FILIPPO - 2 elementi". I have checked the  ReportMovimentiGrid.Model.Locale property and is "it-IT{\"EmptyRecord\":\"Nessun risultato trovato\",\"GroupCaptionFormat\":\"{{:headerText}}: {{:key}} - {{:count}}\",\"GroupText\":\" elemento\"}" it seems that if there is more than one lement the export object add a "s", if I change ReportMovimentiGrid.Model.Locale property with "it-IT{\"EmptyRecord\":\"Nessun risultato trovato\",\"GroupCaptionFormat\":\"{{:headerText}}: {{:key}} - {{:count}}\",\"GroupText\":\" xxx\"}" in the exported pdf the group label is "Ospite: BARONE FILIPPO - 2 xxxs".
Can you help me?
Thank you.
Stefania Solari


Venkatesh Ayothi Raman [Syncfusion]
Replied On November 5, 2016 08:07 AM

Hi Stefania, 

Thank you for contacting Syncfusion support. 
We were unable to reproduce the reported issue at our end and could you please provide following details? 
1)      Essential Studio version details. 
2)      Issue replication procedure. 
3)      Provide Grid code example  
4)      A sample if possible or provide the hosted link of sample 

Regards, 
Venkatesh Ayothiraman. 


Stefania Solari
Replied On November 10, 2016 03:58 AM

Hi Stefania, 

Thank you for contacting Syncfusion support. 
We were unable to reproduce the reported issue at our end and could you please provide following details? 
1)      Essential Studio version details. 
2)      Issue replication procedure. 
3)      Provide Grid code example  
4)      A sample if possible or provide the hosted link of sample 

Regards, 
Venkatesh Ayothiraman. 


Hi,
the esential studio version is 13.4450.0.58.
I attach the files of the page in order to replicate the issue. I attach also tha generated pdf.
Thank you fro your help.
Stefania Solari

Attachment: Report_cb339d68.zip

Venkatesh Ayothi Raman [Syncfusion]
Replied On November 16, 2016 12:04 PM

Hi Stefania,  
  
We considered this requirement “Group caption text is wrongly updated when applying locale to Grid” as feature and a support incident has been created under your account to track the status of this requirement. Please log on to our support website to check for further updates.  
  
  
Regards,  
Venkatesh Ayothiraman. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;