Kendo UI FileManager AngularJS
2 Answers 11 Views
Robet
Top achievements
Rank 1
Iron
Robet asked on 17 Jun 2021, 12:08 AM

Does the FileManager for Kendo UI support AngularJS like the grid?  I have tried initializing the file manager with the following code:

HTML

<div id="fileBrowser" kendo-file-manager="fileBrowser" k-options="fileBrowserOptions"></div>

NOTE: I have tried the following for the attributes:
kendo-file-manager
kendo-filemanager

AngularJS

$scope.fileBrowserOptions = {
        dataSource: {
            schema: kendo.data.schemas.filemanager,
            transport: {
                read: {
                    url: "/kendo-ui/service/FileManager/Read",
                    method: "POST"
                },
                create: {
                    url: "/kendo-ui/service/FileManager/Create",
                    method: "POST"
                },
                update: {
                    url: "/kendo-ui/service/FileManager/Update",
                    method: "POST"
                },
                destroy: {
                    url: "/kendo-ui/service/FileManager/Destroy",
                    method: "POST"
                }
            }
        },
        uploadUrl: "/kendo-ui/service/FileManager/Upload",
        toolbar: {
            items: [
                { name: "createFolder" },
                { name: "upload" },
                { name: "sortDirection" },
                { name: "sortField" },
                { name: "changeView" },
                { name: "spacer" },
                { name: "details" },
                { name: "search" }
            ]
        },
        contextMenu: {
            items: [
                { name: "rename" },
                { name: "delete" }
            ]
        },
        draggable: true,
        resizable: true
    };

 

When I run the code nothing happens.  No errors in the console.

 

Thanks for any help.
Robert

2 Answers, 1 is accepted

Sort by
0
Robet
Top achievements
Rank 1
Iron
answered on 17 Jun 2021, 12:30 AM
Apparently this code works fine.  Looks like I am using a 2018 version of kendo and the file manager did not release until 2020.
0
Ianko
Telerik team
answered on 21 Jun 2021, 08:48 AM

Hello Robert,

The syntax you are using is correct. Here is a dojo example for anyone else interested in that case: https://dojo.telerik.com/@iankodj/IzEbaMaQ

Regards,
Ianko
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.

Asked by
Robet
Top achievements
Rank 1
Iron
Answers by
Robet
Top achievements
Rank 1
Iron
Ianko
Telerik team
Share this question
or