Localization in paging of RADGrid

8 posts, 0 answers
  1. prateek
    prateek avatar
    4 posts
    Member since:
    Jun 2011

    Posted 28 Jun 2011 Link to this post

    How do i localize the text that is written in the bottom when pagination is done in the radgrid. For Example text which displays the page number "Page No. 1 2 3" or text of "Items"
    The text in the given quotes need to be in local language selected by the user on the page.
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 28 Jun 2011 Link to this post

    Hi Prateek,

    To achieve your goal you can localize RadGrid using global resource files. Refer to the following demo which shows how built-in localization through Global resources works:
    http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/localization/defaultcs.aspx

    Best wishes,
    Pavlina
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. DevCraft banner
  4. prateek
    prateek avatar
    4 posts
    Member since:
    Jun 2011

    Posted 28 Jun 2011 Link to this post

    Thanks for the reply but this doesnt solves the problem. The header and and rest of the data take the local culture and get displayed but the footer part which is displayed as "91 items in 10 pages" or ""Page size:" as in the given example doesnt get localized when used as given in the example.
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 28 Jun 2011 Link to this post

    Hello Prateek,

    RadGrid Localization demo is working as expected on my side as you can see from this video. Watch the video and let me know if I am leaving something out.

    Best wishes,
    Pavlina
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  6. prateek
    prateek avatar
    4 posts
    Member since:
    Jun 2011

    Posted 29 Jun 2011 Link to this post

    Actually we are not uing app_Resources folder in our project
    We are using another localization folder . is there any way that i can map the rad resx files and use them in the localization folder instead of app_resorces folder.?
  7. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 29 Jun 2011 Link to this post

    Hello Prateek,

    I suggest you examine the forum thread below and let me know if it helps to achieve your goal:
    http://www.telerik.com/community/forums/aspnet-ajax/grid/localize-grid-pager.aspx

    Greetings,
    Pavlina
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  8. prateek
    prateek avatar
    4 posts
    Member since:
    Jun 2011

    Posted 30 Jun 2011 Link to this post

    Hi
    I have been able to achive all the task other than changing the language of PagerText of ("39 items in 2 pages ")
    Can i specifically know how to change the language of this.
  9. Paul Herzberg
    Paul Herzberg avatar
    20 posts
    Member since:
    Jun 2010

    Posted 20 Aug 2013 Link to this post

    Hello,

    The answer here is slightly obfuscated. I had the same problem and the links do give you the answer, but it looks like they don't.

    The problem is that the text from the English interface doesn't seem to come from the resx file so when you look for the string "{0} items in {1} pages" or something similar it doesn't show up.

    Oddly, if you set the radgrid culture to "de-DE" and then you copy & rename the "radgrid.main.resx" to "radgrid.main.de-DE.resx" as I did the new text "Change page: {4} &nbsp;Page <strong>{0}</strong> of <strong>{1}</strong>, items <strong>{2}</strong> to <strong>{3}</strong> of <strong>{5}</strong>." doesn't show up in the interface. If you add " (de)", say, to the end of the string then the changed entry does show up.

    That entry, "PagerTextFormat" is the one that needs changing.

    Cheers

    Paul Herzberg
Back to Top
DevCraft banner