Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
193 views
Hi,

I have an asp.net 4.0 application that uses Radeditor. However, when I installed SSL certificate in IIS I'm getting XML Parsing Error in Firefox or just blank page in IE as shown in the picture. This only happens in pages with Radeditor in it.

When I uninstalled the certificate, the issue was gone and the pages worked flawlessly. Any Idea how to fix this?

I am using a Comodo SSL in IIS6.

Thanks
Ianko
Telerik team
 answered on 04 Jun 2014
3 answers
313 views
Hello,

We are using RadEditor (2014.1.225.40) & are encountering a serialization error(below) when setting up a large number of EditorLink entries (15,000+)

I know the 'right' answer is to NOT build up that much data to send to the browser, but I am looking to see if there is any short term workaround to try.


Please note:
We do ALREADY have an entry to setup the maximum in the web.config, but that does appear to apply to the editor instance - I'm guessing it has it's own instance.
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2147483644"></jsonSerialization>
</webServices>
</scripting>
</system.web.extensions>

When I break on the error I see that in RadEditor.SerializeCollections, there is a _serializer instance that has a MaxJSONLength of 2097152.
(see attached image serializerSetting.gif)
Is there any config/small code change I can make to adjust that until I get a better fix in place?


Full Error:
Server Error in '/' Application.Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace: 

[InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.]
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat) +532853
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat) +66
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat, MemberInfo currentMember) +153
System.Web.Script.Serialization.JavaScriptSerializer.SerializeEnumerable(IEnumerable enumerable, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat) +127
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValueInternal(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat, MemberInfo currentMember) +1306
System.Web.Script.Serialization.JavaScriptSerializer.SerializeValue(Object o, StringBuilder sb, Int32 depth, Hashtable objectsInUse, SerializationFormat serializationFormat, MemberInfo currentMember) +197
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, StringBuilder output, SerializationFormat serializationFormat) +28
System.Web.Script.Serialization.JavaScriptSerializer.Serialize(Object obj, SerializationFormat serializationFormat) +66
Telerik.Web.UI.RadEditor.SerializeCollections(IScriptDescriptor descriptor, JavaScriptSerializer jss) +912
Telerik.Web.UI.RadEditor.DescribeComponent(IScriptDescriptor descriptor) +1258
Telerik.Web.UI.RadWebControl.Telerik.Web.IControl.DescribeComponent(IScriptDescriptor descriptor) +10
Telerik.Web.UI.ScriptRegistrar.GetScriptDescriptors(Control control) +119
Telerik.Web.UI.RadEditor.GetScriptDescriptors() +26
Telerik.Web.UI.RadWebControl.System.Web.UI.IScriptControl.GetScriptDescriptors() +10
System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) +128
Telerik.Web.UI.RadWebControl.RegisterScriptDescriptors() +90
Telerik.Web.UI.RadEditor.RegisterScriptDescriptors() +27
Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +84
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10
System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +216
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +128
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386
Ianko
Telerik team
 answered on 04 Jun 2014
3 answers
198 views
We've got a couple of oddities with RadEditor (Q1 2010 version).

Links:

1) In Design mode, the user enters a line of text
2) The user marks a single word in the text they just entered
3) The user sets a hyperlink on the word via the Hyperlink Manager.
4) User continues adding text
5) The user marks the word previously hyperlinked and presses "Delete" on the keyboard

Result:
In HTML View, there's an empty anchor <a href></a> tag where the word used to be.

Things we tried:
- If the user selects the word plus the whitespace character preceding the word, the anchor tag is properly removed
- If the user "backspaces" the word out, the anchor tag is also properly removed
- If the user marks the word and instead of pressing "Delete" starts typing a replacement text, the anchor tag is kept around the new text

It's our opinion that marking the word (shift + cursor keys) and pressing the "Delete"-Key should also remove the underlying anchor tag (if present).

Changing Attributes:

Scenario:
 We've got a Rad Editor on a page. The content is set from the Database. On postback, the application should check whether the user changed the content, and if yes, do some processing and update the database.

Observation:
We were setting the Rad Editor from the database with text containing a single anchor tag as follows:

.... <a href="http://www.sample.com" class="XYZ">Sample</a> ...

Without changing anything in the editor and forcing a postback, RadEditor gave us the following content back:

.... <a class="XZY" href="http://www.sample.com">Sample</a> ...

Being the good fellows we are, we take that, write it back into the database and load the page again. So this time we set the content of our rad editor to:

.... <a class="XZY" href="http://www.sample.com">Sample</a> ...

Again, without changing anything in the edtior, we cause a postback and lo and behold what do we get from Rad Editor:

.... <a href="http://www.sample.com" class="XYZ">Sample</a> ...

We've determined that this due to one of the default CONTENT FILTERS that Rad Editor uses. We managed to fix the problem by setting the ContentFilters property to "None", however this "fix" is less than perfect. Maybe you guys could look at which part of your javascript is flipping tag attributes around and make it stop?

Thanks.


Ianko
Telerik team
 answered on 04 Jun 2014
2 answers
108 views
Hi, 

I'm looking at switching over to the HTML Charts now that they seem rich in features.  

First issue that I am facing is that I want to only show the top x records on the chart with any beyond x being shown collectively as others.

Beyond manipulating the data set to do that is there any way to do this with the out of the box charts?

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 04 Jun 2014
2 answers
160 views
What CSS do I need to apply to reduce the height / shrink spacing between the file names in the uploaded list?
Magdalena
Telerik team
 answered on 04 Jun 2014
3 answers
62 views
We are running Version 9.0.30729.1 SP.

When using a RadEditor in IE 9, the data that is entered is never sent back to the server.  I have tried adding the UseSubmitBehavior=false on all the saving buttons,  I also tried to add the meta tag to emulate IE 8. Is there a patch for this version that fixes this issue with IE 9?

Everything works fine in Chrome and Firefox and IE 8.
Ianko
Telerik team
 answered on 04 Jun 2014
4 answers
76 views
Hi..

Got a problem with Radcalendar. Works fine locally on IIS8 click a date and the date stays selected. When I publish to IIS8 I click on a date and the date bounces back to selected date bounces back to today's date. The calendar is on a masterpage is there anything obvious to look for?
Speedcrete
Top achievements
Rank 1
 answered on 04 Jun 2014
3 answers
62 views
Hi All

I am facing issue the order of the attributes get change when load the data in Rad editor, The same order also get change when switch between the design & html mode.
The Tag i insert in the db: &lt; <a style="color: #000000;" class="1" title="C-2, General Commercial" tagname="Primary Zone">C-2, General Commercial</a> &gt;
The tag i got in a html editor: &lt; <a tagname="Primary Zone" title="C-2, General Commercial" class="1" style="color: #000000;">C-2, General Commercial</a> &gt;

Here the order of the attribute is exactly reverse.
The same also get reverse when switch between  the design & Html Mode
Ianko
Telerik team
 answered on 04 Jun 2014
1 answer
115 views
RadNotification doesn't load/show notification messages when there is a RadMediaPlayer on the form with a Playlist populated. Can somebody look into this?

Thanks,

Venu Gadde.
Princy
Top achievements
Rank 2
 answered on 04 Jun 2014
1 answer
133 views
I have a RadGrid From that I have the AutoEdit Turned on - I am am trying to make a couple of the Fields in the "PopUp" Edit Form be multiline as they are of type Ntext and are large. Currently they are just smaller type default Text Cells and cannot see all of the text. Trying to get them to be Multiline and maybe Scrollable.. Below is my code that I have behind in my .aspx.vb code for the page - but it is not making anything happen.

For Edit item.

Protected Sub RadGrid2_ItemDataBound(sender As Object, e As 
GridItemEventArgs)<BR>If TypeOf e.Item Is GridEditFormItem AndAlso 
e.Item.IsInEditMode Then<BR>Dim editItem As GridEditFormItem = TryCast(e.Item, 
GridEditFormItem)<BR>Dim editTable As Table = 
TryCast(TryCast(editItem.EditFormCell, 
GridEditFormItem.EditFormTableCell).Controls(7).Controls(7), 
Table)<BR>editTable.Width = Unit.Percentage(100)<BR>Dim textBox As TextBox = 
DirectCast(editItem("Corrective Action").Controls(7), 
TextBox)<BR>textBox.TextMode = TextBoxMode.MultiLine<BR>TryCast(textBox.Parent, 
TableCell).Width = Unit.Percentage(100)<BR>textBox.Width = 
Unit.Percentage(100)<BR>End If<BR>End Sub

For Create Item

Protected Sub RadGrid2_ItemCreated(sender As Object, e As 
GridItemEventArgs)<BR>If TypeOf e.Item Is GridEditFormItem AndAlso 
e.Item.IsInEditMode Then<BR>Dim editItem As GridEditFormItem = TryCast(e.Item, 
GridEditFormItem)<BR>Dim editTable As Table = 
TryCast(TryCast(editItem.EditFormCell, 
GridEditFormItem.EditFormTableCell).Controls(7).Controls(7), 
Table)<BR>editTable.Width = Unit.Percentage(100)<BR>Dim textBox As TextBox = 
DirectCast(editItem("Corrective Action").Controls(7), 
TextBox)<BR>textBox.TextMode = TextBoxMode.MultiLine<BR>TryCast(textBox.Parent, 
TableCell).Width = Unit.Percentage(100)<BR>textBox.Width = 
Unit.Percentage(100)<BR>End If<BR>End Sub
Shinu
Top achievements
Rank 2
 answered on 04 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?