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

Unable to use Kendo Editor in asp.net mvc core

1 Answer 128 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Wei
Top achievements
Rank 1
Wei asked on 05 Nov 2018, 08:29 PM

Hi, I attempted to use Kendo-editor control in my asp.net mvc core application. I added the control to a cshtml file in the simple form. 

<kendo-editor name="editor">

</kendo-editor>

But when starting the web, there is an error in the console:

bundle.js:39 Uncaught TypeError: e.kendoSelectBox is not a function
    at Object.initialize (bundle.js:39)
    at HTMLSelectElement.<anonymous> (bundle.js:39)
    at Function.each (bundle.js:28)
    at xe.fn.init.each (bundle.js:28)
    at init.bindTo (bundle.js:39)
    at new init (bundle.js:39)
    at HTMLTextAreaElement.<anonymous> (bundle.js:1)
    at Function.each (bundle.js:28)
    at xe.fn.init.each (bundle.js:28)
    at xe.fn.init.e.fn.(:44398/anonymous function) [as kendoEditor] (https://localhost:44398/bundle.js:

The same error is in both chrome and IE.

FYI: I am able to use other controls, such as dropdownlist, grid, without issue.

See the attachment for the display of the kendo-editor.

What step did I miss?

Thanks,

Wei

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 06 Nov 2018, 11:10 AM
Hello Wei,

The error shown indicates that scrips from the Editor bundle are missing. If you are using a custom built script bundle for the Kendo UI library, make sure to include all needed scripts. You can check the list here: https://docs.telerik.com/kendo-ui/intro/supporting/scripts-editors

I am also attaching a ready-to-use project with CDN to check out the kendo-editor taghelper working in a sample.

Regards,
Ianko
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Editor
Asked by
Wei
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or