Search code examples
asp.net-mvctelerik

Telerik Editor doesn't work


I

  1. Downloaded open-source version of Telerik

  2. Put Telerik css and js in appropriate folders in project

  3. Added reference to Telerik dll

  4. Wrote HTML http://pastebin.com/FzQDitzA

And I got this http://imageshack.us/photo/my-images/542/testgu.png/

It is all fine but when I cannot type text in this control and comboboxes don't work too

What's the matter?


Solution

  • You are missing a ScriptRegistrar which is responsible for initializing the editor and rendering the required JavaScript files.

    Try this:

    <body>
        <div>
            @{ Html.Telerik().Editor()
               .Name("editor").Render();
               }
        </div>
       @(Html.Telerik().ScriptRegistrar())
    </body>