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

How to handle Group caption Format while exporting in the case of value set through Localization?

Platform: ASP.NET Core |
Control: Grid |
Published Date: September 20, 2018 |
Last Revised Date: September 20, 2018

This Knowledge Base showcase the example to handle Group caption format while exporting the grid when GroupCaptionFormat is set in Localization

Solution:

If we set GroupCaptionFormat through localization, then while exporting we need to handle the Group Caption Format in server side using corresponding server event.

Step 1: Render the grid control.

HTML

 

JS

MVC

 

Excel Exporting

For excel exporting, use ServerExcelGroupCaptionInfo event to get the grouped column details and using that details set the GroupCaptionTemplate as like the format define in GroupCaptionFormat property of localization.

Pdf Exporting

For pdf exporting, use ServerPdfGroupCaptionInfo event to get the grouped column details and using that details set the GroupCaptionTemplate as like the format define in GroupCaptionFormat property of localization.

Word Exporting

For word exporting, use ServerWordGroupCaptionInfo event to get the grouped column details and using that details set the GroupCaptionTemplate as like the format define in GroupCaptionFormat property of localization.

 

 

ASP

 

 

.Net core

 

 

Step 2: Define the localization text for corresponding culture “de-DE”

 

 

 

Output:

Figure 1: Excel Exporting

 

 

 

Figure 2:Pdf Exporting

 

 

 

Figure 3: Word Exporting

 

 

 

 

2X faster development

The ultimate ASP.NET Core UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon 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.Close Icon

Live Chat Icon For mobile