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

[Solved] Using Editor in GridEditMode.PopUp

0 Answers 60 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James
Top achievements
Rank 1
James asked on 02 Nov 2010, 03:05 PM
Ok, I have a grid, I'm using EditMode 'PopUp'.

When I try to use the editor in this pop up, I get a javascript error. 'Microsoft JScript runtime error: Object doesn't support this property or method' Below is a snippet from the dynamic javascript.

a))();

 

else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],

Here is my EditorTemplate code.

 

<%

 

@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<string>" %>

 

<%

 

= Html.Telerik().Editor()

 

.Name(ViewData.TemplateInfo.GetFullHtmlFieldName(

 

string.Empty))

 

.HtmlAttributes(

 

new { style = "height:250px;; width:250px;" })

 

.Value(Html.Encode(Model))

.Tools(tools => tools

.Clear()

.Bold().Italic().Underline()

.Separator()

.CreateLink().Unlink()

)

%>

Tags
Grid
Asked by
James
Top achievements
Rank 1
Share this question
or