views:

707

answers:

2

We are using Telerik RadEditor control in our project and having some problems with its integration with our user documents storage engine. We've implemented custom content provider for Telerik image manager and it shows correct documents in dialog. But in doesn't switch between images while selection. You can see this on this picture. We've tested this behaviour on the blank ASP.NET page without any additional CSS or JS. Rad editor tag could be found below. Please help! Why do this could happen?

<telerik:RadEditor ID="radEditor" runat="server" 
    ToolbarMode="ShowOnFocus"
    ToolsWidth="402"
    EditModes="Design"
    ToolsFile="~/RadEditor.xml"
    Skin="Default">
    <ImageManager ViewPaths="IMAGES" EnableImageEditor="False" ContentProviderTypeName="FileStorageContentProvider, App_CODE" />
</telerik:RadEditor>
A: 

Does it work as intended without your ContentProvider? I'm wondering if the logic in your contentprovider is causing the issue. I don't see anything out of the oridinary from your control properties.

FiveTools
Yes, it maybe true, because it works without content provider. But what things in content provider could lead to these effects. I've checked requests in Firebug and saw that files descriptions and links were came correctly to the browser. And dialog shows them correct. It just dosen't switch between them.
AlexNS
A: 

Thanks to FiveTools! The issue was in content provider. Full path to item (including item name) should be passed to the 'location' parameter of the FileItem constructor. Otherwise selection would be broken.

AlexNS
glad i was of even a small help. vote me up! Cheers
FiveTools