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

Localization on RadGrid: Paging Option All

1 Answer 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 01 Nov 2018, 07:33 AM

Hello

I don't find an option to translate the Text "All" (added with the EnableAllOptionInPagerComboBox property). Can someone name me the key for it or can't we translate it at all?

 

christian

1 Answer, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 02 Nov 2018, 08:26 AM
Hello Christian,

Although this setting is not present in the globalization resx file, you can localize the All text in the ComboBox using the following approach:


protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridPagerItem)
    {
        RadComboBox combo = e.Item.FindControl("PageSizeComboBox") as RadComboBox;
        combo.Items.Last().Text = "New Localization String";
    }
}
 

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Mario
Top achievements
Rank 1
commented on 05 Dec 2022, 08:14 AM

Hi,

is it possible to have you add the means to add a translation for the  "All"  Option Text (added with the EnableAllOptionInPagerComboBox property) over the "PagerStyle" tag, without having to hack the translation into the Dropdown with the ItemDataBound Method?

Thanks,

Rumen
Telerik team
commented on 05 Dec 2022, 08:42 AM

Thank you for your feature request, Mario! Can you please log it in the AJAX feedback portal?
Mario
Top achievements
Rank 1
commented on 07 Dec 2022, 04:16 PM

Feature Request is here if someone wants to vote it up: https://feedback.telerik.com/aspnet-ajax/1589532-set-translation-for-all-option-for-the-enablealloptioninpagercombobox
Rumen
Telerik team
commented on 07 Dec 2022, 11:14 PM

Thank you, Mario! I updated your Telerik points for it.
Tags
Grid
Asked by
Missing User
Answers by
Rumen
Telerik team
Share this question
or