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

RadFileExplorer Thumbnailsmode Pager localization

1 Answer 46 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Katrine
Top achievements
Rank 1
Katrine asked on 30 Nov 2015, 03:08 PM

Hello,

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}"

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 02 Dec 2015, 01:37 PM
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" />
</telerik:RadFileExplorer>
<script>
    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);
    }
</script>
protected void Page_Load(object sender, EventArgs e)
{
    RadFileExplorer1.FileList.Slider.OnClientValueChanged = "explorerLoad";
}


I hope this information will be helpful for you.

Regards,
Vessy
Telerik
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
Tags
FileExplorer
Asked by
Katrine
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or