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

[Solved] Implementation of IImageBrowserController

4 Answers 33 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Danny
Top achievements
Rank 2
Danny asked on 21 Oct 2011, 07:51 AM
Hi,

I am trying to implement IImageBrowserController for my editor to upload to my database, but nothing happens. It will show an empty file upload.
When I try to debug the IImageBrowserController nothing happens, so I figure that the route the filebrowser needs is not triggered. Also the class is never instantiated.

Do you know the routes that this filebrowser needs to function?

Thanks in advance..

Kind regards,
Danny Bijkerk

4 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 21 Oct 2011, 08:29 AM
Hello Danny,

Please refer to this code library for an example of how to implement database store for the ImageBrowser.

Regards,
Rosen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Danny
Top achievements
Rank 2
answered on 21 Oct 2011, 08:38 AM
Hi Rosen,

Thank you for your quick reply..

I used this example to start with. After implementing the methods described. Nothing happens. I have set an breakpoint in the constuctor of the class that implements the interface and the breakpoint is never hit..

Kind regards,
Danny
0
Rosen
Telerik team
answered on 21 Oct 2011, 09:08 AM
Hello Danny,

Could you verify that there are no JavaScript errors on the page. Also you should check, using a FireBug or some other similar tool, that when image browser is shown a request to the server is made and what is the response.

It will be appreciated if you could provide a small runnable application in which the issue you are facing can be observed.

All the best,
Rosen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Danny
Top achievements
Rank 2
answered on 21 Oct 2011, 11:01 AM
Hello Rosen,

There were not javascript errors, but I found the solution: I have added the route:
routes.MapRoute("ImageBrowser", "ImageBrowser/{action}/{path}", new { controller
= "ImageBrowser", path = UrlParameter.Optional });


To my list of routes and the it solved my issues for this moment.
Thanks for your help and quick response so far.
Kind regards,
Danny
Tags
Editor
Asked by
Danny
Top achievements
Rank 2
Answers by
Rosen
Telerik team
Danny
Top achievements
Rank 2
Share this question
or