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