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

Image Manager can't see .jpeg

2 Answers 49 Views
Editor
This is a migrated thread and some comments may be shown as answers.
david
Top achievements
Rank 1
david asked on 17 Dec 2013, 03:55 AM
Within Radeditor, the imagemanager doesn't see .jpeg files when browsing.

We have :
            string[] sImageSearchPatterns = new string[] { "*.png""*.gif""*.jpg" , "*.jpeg"};
   RadEditor1.ImageManager.SearchPatterns = sImageSearchPatterns;

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Dec 2013, 06:04 AM
Hi david,

Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end.

ASPX:
<telerik:RadEditor runat="server" ID="RadEditor1" Height="400px">
    <Tools>
        <telerik:EditorToolGroup Tag="FileManagers">
            <telerik:EditorTool Name="ImageManager"></telerik:EditorTool>
        </telerik:EditorToolGroup>
    </Tools>
    <ImageManager ViewPaths="~/Images/" />
</telerik:RadEditor>

C#:
protected void Page_Load(object sender, EventArgs e)
{
    string[] sImageSearchPatterns = new string[] { "*.jpeg","*.jpg" };
    RadEditor1.ImageManager.SearchPatterns = sImageSearchPatterns;
}

Please provide your full code if it doesn't help.
Thanks,
Shinu.
0
david
Top achievements
Rank 1
answered on 17 Dec 2013, 01:56 PM
Thanks, my code works after all, sort of embarrassing. Turns out in lmage-manager the list view is sorted by extension, not by name so the .jpeg sorted to the bottom of a very long list and we didn't see them.

Tags
Editor
Asked by
david
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
david
Top achievements
Rank 1
Share this question
or