What to use instead of these 2 deprecated controllers in 2025 q1 asp.net mvc by Telerik?

1 Answer 24 Views
Editor FileManager
Anton
Top achievements
Rank 1
Anton asked on 05 May 2025, 03:32 AM
      Error CS0234: The type or namespace name 'FileBrowserController' does not exist in the namespace 'Kendo.Mvc.UI' (are you missing an assembly reference?) (15, 55)
      Error CS0246: The type or namespace name 'EditorImageBrowserController' could not be found (are you missing a using directive or an assembly reference?) (16, 43)
Anton
Top achievements
Rank 1
commented on 05 May 2025, 03:34 AM

They were deprecated in 2024 Q1, but I do not see what to use instead of them?

1 Answer, 1 is accepted

Sort by
0
Mihaela
Telerik team
answered on 07 May 2025, 02:52 PM

Hello Anton,

Starting with version 2024.1.130, EditorImageBrowserController, FileBrowserController, and EditorFileBrowserController are depricated (no longer available), as stated in the breacking changes section in the documentation:

Breacking changes in Q1 2024

You can implement them by yourself, as demonstrated in the Editor Overview online demo:

https://demos.telerik.com/aspnet-mvc/editor

Checkout the complete source code in the "View Source" section.

Also, you can run the demos locally through the Sample application that comes with the installation of UI for ASP.NET MVCand inspect closely the Editor's demo implementation.

If you have any questions regarding the matter, please let me know.

Regards,
Mihaela
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Anton
Top achievements
Rank 1
commented on 10 May 2025, 03:21 AM

MIhaela, those all are the files I should implement from scratch, or are any part of the API already?
Anton
Top achievements
Rank 1
commented on 10 May 2025, 03:46 AM

MIhaela, starting with:

public interface IFileBrowserController
    {
        JsonResult Read(string path);
        ActionResult Destroy(string path, FileViewModel entry);
        ActionResult Create(string path, FileViewModel entry);
        ActionResult Upload(string path, HttpPostedFileBase file);
    }

FileViewModel is nowhere to be found... where is it?

Mihaela
Telerik team
commented on 14 May 2025, 02:41 PM

Hi Anton, 

Here is the FileViewModel for your reference:

using Kendo.Mvc.UI;

namespace Kendo.Mvc.Examples.Models.Editor
{
    public class FileViewModel : FileBrowserEntry
    {
        public string Path { get; set; }
    }
}

Best,
Mihaela

Tags
Editor FileManager
Asked by
Anton
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or