This is a migrated thread and some comments may be shown as answers.

pager style in NextPrevAndNumericAdvanced mode

1 Answer 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Steven
Top achievements
Rank 1
Steven asked on 10 Mar 2016, 10:04 AM

I am changing the pager style mode of a grid from NextPrev to NextPrevNumericAndAdvanced.

I am using a skin file, and the change of the mode is working.

however I am trying to change this for several languages (different skin files are used for that) and I am at a complete loss  about how to change the text parts that were added with the change from NextPrev to NextPrevNumericAndAdvanced

My pagerstyle tag in the skin file looks like this

  <PagerStyle        
FirstPageToolTip=""                            
LastPageToolTip=""                            
PagerTextFormat="Pagina wisselen: {4} &nbsp;Pagina <strong>{0}</strong> van <strong>{1}</strong>, items <strong>{2}</strong> tot <strong>{3}</strong> van <strong>{5}</strong>."                            
PageSizeLabelText="Pagina grootte"                            
PrevPagesToolTip=""                            
PrevPageToolTip=""                           
NextPagesToolTip=""                           
NextPageToolTip=""                            
/>

basically I am looking into a way of changing the red parts in the screenshot.

i.e 2 button texts, and 2 label texts

I suppose I have to change the PagerStyle tag, but I have no idea which variablenames to add/change, or if I can do it by changing the PagerTextFormat.

Anyone knows how to do this?

 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 11 Mar 2016, 08:04 AM
Hello Steven,

You can use global localization as suggested in the following post:
http://www.telerik.com/forums/translate-filter-text#RMdQ9B6mIkWEy8FGl0yFJQ

Alternatively, you can access the mentioned pager parts using the ItemDataBound event handler and change their texts accordingly. I can prepare a sample web site to demonstrate that if you prefer.

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Steven
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or