RadFileExplorer Thumbnailsmode Pager localization

2 posts, 0 answers
  1. Katrine
    Katrine avatar
    4 posts
    Member since:
    Aug 2011

    Posted 30 Nov 2015 Link to this post


    I have a RadFileExplorer which is set to Thumbnailsmode.

    I can't seem to figure out where the localization texts for the pager originates from when the RadFileExplorer is in Thumbnailsmode. The other parts of the RadFileExplorer is translated through the RadEditor.Dialogs.resx file which works fine.

    I've searched all the other .resx files included in the release I'm using (2015.1.401) without any luck.

    Can you pinpoint me to where this is translated?

    I have also tried to translate it manually through the grid but that doesn't work at all. Something tells me that the pager is part of the filelist.listview.

    radFileExplorer.Grid.MasterTableView.PagerStyle.PagerTextFormat = "{4} " & pageText & " {0} " & ofText & " {1}, " & itemsText & " {2}-{3} " & ofText & " {5}"

  2. Vessy
    Vessy avatar
    1357 posts

    Posted 02 Dec 2015 Link to this post

    Hi Katrine,

    When FileExplroer is used in Thumbnails mode it is using a custom paging control the value for which (page labels and number) are added on the client. This is why the only way to modify their values for the moment is to replace the current string on the client. For example, you can do it in the handlers of the FileExplorer's clientLoad and the paging Slider's ClientValueChanged events in a similar way:
    <telerik:RadFileExplorer runat="server" ID="RadFileExplorer1" PageSize="3" AllowPaging="true" OnClientLoad="explorerLoad" ExplorerMode="Thumbnails">
        <Configuration ViewPaths="~/Images" DeletePaths="~/Images" UploadPaths="~/Images" />
        function explorerLoad(sender, args) {
            setTimeout(function () {
                var pager = $telerik.$(".rfePageInfo")[0];
                pager.innerHTML = pager.innerHTML.replace("Page", "New Page String");
                pager.innerHTML = pager.innerHTML.replace("Items", "New Items String");
            }, 100);
    protected void Page_Load(object sender, EventArgs e)
        RadFileExplorer1.FileList.Slider.OnClientValueChanged = "explorerLoad";

    I hope this information will be helpful for you.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top