Customize text in pagerdropdown

Hello,

I want to customize the text in gridpager.

How can I achieve that?

Thank you in advance.




3 Replies

RS Rajapandiyan Settu Syncfusion Team March 9, 2022 11:49 AM UTC

Hi Dana, 

Thanks for contacting Syncfusion support. 

Based on your query, you want to customize the default text of Grid pager. You can achieve your requirement by using Globalization of Grid. 

   
The Localization library allows you to localize default text content of the Grid and other controls. The grid component has static text on some features (like Filter Dialog, Edit Dialog, Group drop area text, Pager information text, etc.) that can be customized by loading its custom text in L10n. Please refer to the below code example and sample for more information.  
  
  
[app.component.ts] 

L10n.load({ 
  'en-US': { 
    pager: { 
      currentPageInfo: '{0}/{1} Pages', 
      totalItemsInfo: '({0} Records)', 
      pagerDropDown: 'Records in a page', 
    }, 
  }, 
}); 



Please get back to us if you need further assistance with this. 

Regards, 
Rajapandiyan S 



DS Dana Sarghe March 9, 2022 05:34 PM UTC

Thank you!
This is the solution that I was looking for.



RS Rajapandiyan Settu Syncfusion Team March 10, 2022 03:55 AM UTC

Hi Dana, 
 
We are glad that you have resolved your requirement with the provided solution. 
 
Please get back to us if you need further assistance. 
 
Regards, 
Rajapandiyan S 


Loader.
Up arrow icon