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

[Solved] Telerik MVC Editor (htmlfile: Unexpected call to method or property access.)

3 Answers 71 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.
lyn smith
Top achievements
Rank 1
lyn smith asked on 16 Jun 2011, 02:56 PM
Does any one knows why MVC Telerik editor throws an error when it's used with Html.Textbox control?

My development environment is as follows;

  1. ASP.NET MVC version  - 1.0.0.0
  2. OS - Windows XP Service Pack 2
  3. exact browser version - 8.0.6001.18702
  4. exact version of the Telerik product - 2011.1.315.135 (Runtime version - v2.0.50727)
  5. preferred programming language - C#

When I move curson from Telerik Rad editor to simple HTML.Textbox it throws following errro;

htmlfile: Unexpected call to method or property access.

in telerik.editor.min.js

at this code

do{a2.insertBefore(a3,a3.previousSibling);

 

 

 

To reporduce the error one can start with simple MVC (1.0) project. Add Telerik dll, css in contents and scripts with their folders and write the following code in Index.aspx (which is just adding one telerik ediror and one html text box)

<p>

  

<%

    Html.Telerik().Editor()

        .Name("AllAuthorsRadEditor")

        .HtmlAttributes(new { style = "height:30px; width:700px;" })

        .Tools(tools => tools

                                .Clear()

                                .Bold().Separator().Italic())

        .Render();

%>

 

</p>

  

<p><input type="text" /></p>

  

after adding Telerik namespace (Telerik.Web.Mvc.UI) and in web.config and enter stylesheetregistrar and scriptregistrar in Site.Master.

Please help. Many thanks.

 

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 17 Jun 2011, 07:26 AM
Hi Lyn,

The issue was fixed in more recent builds. Please give the latest internal build a try.

Kind regards,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
lyn smith
Top achievements
Rank 1
answered on 17 Jun 2011, 10:09 AM
Hi Alex,

Thanks very much for your reply but it didn't fix the issue. As I said that I am using the most recent build of Telerik product which is 2011.1.315.135 and it still throwing the same error. If I work only with Telerik editor of it's own on a page/view then it's fine. But as soon as I include another simple text box and at runtime when i just move cursor after typing in editor it's throw an error. I even remove the dlls of 2011 build I was using and inlcude dlls from the link you have provided but no gain at all. It's erroring

htmlfile: Unexpected call to method or property access.

on the same line of code

 

do {a1.insertBefore(a2,a2.previousSibling);

 


in telerik.editor.min.js.

As I mentioned in my previous post that you can very easily reproduce the error by just add one Telerik editor and one text box and no other coding at all whatsoever.

I have attached the project as well so one can download and run and see what I am talking about.

Regards,
Lyn
0
Atanas Korchev
Telerik team
answered on 17 Jun 2011, 11:26 AM
Hello lyn smith,

 The latest official release is 2011.1.414 (Q1 2011 SP1). The latest internal build at this time is 2011.1.616. The latest service pack and internal build are available only to customers who own a commercial license.

 The project which you have attached is using older version 2010.3.1410. 


Regards,

Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
lyn smith
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
lyn smith
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or