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

Q1/2010 number of images in image manager

1 Answer 61 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Heinz
Top achievements
Rank 1
Heinz asked on 23 Mar 2010, 12:35 PM
Hi,
seems that in Q1/2010 release the number of images shown in image manager per page is limited to 10 or is corresponing with the page size of an underlying grid. Is it possible to customize the page size value in the image manager (e.g. to 50)?
Regards
Heinz

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 25 Mar 2010, 05:52 PM
Hi Heinz,

I already answered to your questions in the support ticket, but I will also provide the response here so it is available to our community.

In order to increase the page size of ImageManager, DocumenentManager, FlashManager, etc you need to modify the built-in RadFileExplorer control, which is used in all FileManager Dialogs of RadEditor. This control is located in the FileBrowser.ascx file which is located in the EditorsDialogs external folder.

Please follow the steps below to achieve this:
  1. Copy the EditorDialogs folder to your web application. This folder located in your RadControls installation directory (most often C:\Program Files (x86)\Telerik\RadControls for ASP.NET AJAX XXXXX\EditorDialogs)
  2. Set the ExternalDialogsPath property of RadEditor to point to this folder, e.g.
    ExternalDialogsPath="~/EditorDialogs";
  3. Open the EditorDialogs/FileBrowser.ascx file, locate the RadFileExplorer control:
    Copy Code
    <telerik:RadFileExplorer ID="RadFileExplorer1" Height="450px" Width="400px" TreePaneWidth="150px"
        runat="Server" EnableOpenFile="false" AllowPaging="true" />
    and replace it with the code from my previous post:
    Copy Code
    <telerik:RadFileExplorer ID="RadFileExplorer1" Height="450px" Width="400px" TreePaneWidth="150px"
        runat="Server" AllowPaging="true" OnClientLoad="OnFileExplorerLoad" />
    <script type="text/javascript">
        function OnFileExplorerLoad(sender, args)
        {
            //set the pageSize of the Grid component
            sender.get_grid().get_masterTableView().set_pageSize(50);
        }
    </script>

Please find the example project attached.

All the best,
Dobromir
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
Tags
Editor
Asked by
Heinz
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or