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

HeaderContextMenu translate "Check All"

1 Answer 10 Views
Grid
This is a migrated thread and some comments may be shown as answers.
User1564
Top achievements
Rank 1
Veteran
User1564 asked on 20 Nov 2020, 02:13 PM

Hello,

I am using HeaderContextMenu in my Grid. I am using it together with GlobalRosources.
I am also using filterlist.
Everything works as expected. Just the Search and "Check All" checkbox doesnt get translated.

I managed to translate Search using "HeaderContextMenu_ItemCreated", but couldn't find a way to do it for "check all"

Regards

1 Answer, 1 is accepted

Sort by
0
Doncho
Telerik team
answered on 25 Nov 2020, 09:49 AM

Hi Wernfried,

You can try to reach the embedded ListBox control inside the Controls collection of the RadGrid, and set its Localization.CheckAll property to the desired text. The PreRender event is late enough to have the ListBox created: 

protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    var grid = sender as RadGrid;
    foreach (var ctrl in grid.Controls)
    {
        if (ctrl is RadListBox)
        {
            (ctrl as RadListBox).Localization.CheckAll = "CustomCheckAll";
            break;
        }
    }
}

Please give it a try and let me know how it goes!

Kind regards,
Doncho
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
User1564
Top achievements
Rank 1
Veteran
Answers by
Doncho
Telerik team
Share this question
or