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

[Solved] Footer: "Items 1-22"

3 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Julien
Top achievements
Rank 1
Julien asked on 16 Apr 2012, 07:23 AM
Hi, 

I'm using the grid for one of my project.

I just have one question about customizing the footer pager:

Actually, it displays "Afficher les items 1 - 22 de 22"(french website)

but: 

1. Item doesn't mean anything in french, the most approching word for it should be something like "Affichage des éléments 1 - 22 de 22"
2. I'm displaying business data, is there a way to have something else instead of this "items", something like "Persons, cars, ..."

My customer are asking me to change this, and I cannot find how without implementing myself a datapager.

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 16 Apr 2012, 08:28 AM
Hello Julien,

Basically the localization files shipped with the MVC extensions are provided by our community. You can change the localization file for your country the way you want. In your case you could find the localiztion file used for the Grid called GridLocalization.fr-FR.resx under the App_GlobalResources folder inside your project.
Then you could change the DisplayingItems message to the desired one.
I hope this helps.

Kind regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Julien
Top achievements
Rank 1
answered on 16 Apr 2012, 08:30 AM
My biggest problem isn't the traduction, my biggest problem is that I need to have differents text here for all grids, once it will be "Persons", once "cars", ...
0
Petur Subev
Telerik team
answered on 17 Apr 2012, 11:32 AM
Hi again Julien,

Then you can use the OnDataBound event to update the message the way you prefer.
e.g.
function onDataBound(e)
{
    var message= $(this).find('t-status-text').text();
    message = message.replace('items','cars');
     $(this).find('.t-status-text').text(message );
}


Regards,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Grid
Asked by
Julien
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Julien
Top achievements
Rank 1
Share this question
or