Localization on RadGrid: Paging Option All

2 posts, 1 answers
  1. Christian
    Christian avatar
    2 posts
    Member since:
    Oct 2018

    Posted 01 Nov 2018 Link to this post

    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

  2. Answer
    Rumen
    Admin
    Rumen avatar
    13729 posts

    Posted 02 Nov 2018 Link to this post

    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.
Back to Top