Hi Team
I need to report an issue. I'm using Telerik.Web.UI.RadGrid control in my app. I have some special characters to be rendered in the grid (e.g. ', <, >, \, :, _ etc). When I'm saving these in DB I HTML Encode them. And when rendering back in UI, I HTML Decode them. I found that while HTML Encoding special characters, if there is this combination of characters &# in the encoded string (e.g. for ' [single quote] which becomes '), there is a java script alert message with error "An unknown error occurred while processing the request on the server. The status code returned from the server was: 500". If I remove this &# in the string from back end then it works fine.
I really need help on this as the special characters are really required in the strings and I cannot go in the entire database remove this &# string combination and thus make the data invalid. Below is more details from the metadata of the control I'm using in my app.
namespace Telerik.Web.UI
{
[ClientScriptResource("Telerik.Web.UI.RadGrid", "Telerik.Web.UI.Grid.RadGridScripts.js")]
[ControlValueProperty("SelectedValue")]
[DefaultEvent("NeedDataSource")]
[DefaultProperty("")]
[Description("Telerik RadGrid")]
[Designer("Telerik.Web.Design.RadGridDesigner, Telerik.Web.Design, Version=2012.3.1016.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4")]
[EmbeddedSkin("Grid")]
[EmbeddedSkin("Grid", "Default")]
[TelerikToolboxCategory("Telerik AJAX Data Components")]
[ToolboxBitmap(typeof(RadGrid), "Telerik.Web.UI.Grid.png")]
[ToolboxData("<{0}:RadGrid runat=server></{0}:RadGrid>")]
public class RadGrid : GridBaseDataList, INamingContainer, IPostBackDataHandler, IPostBackEventHandler, IRadFilterableContainer
{
........
........
}
I need to report an issue. I'm using Telerik.Web.UI.RadGrid control in my app. I have some special characters to be rendered in the grid (e.g. ', <, >, \, :, _ etc). When I'm saving these in DB I HTML Encode them. And when rendering back in UI, I HTML Decode them. I found that while HTML Encoding special characters, if there is this combination of characters &# in the encoded string (e.g. for ' [single quote] which becomes '), there is a java script alert message with error "An unknown error occurred while processing the request on the server. The status code returned from the server was: 500". If I remove this &# in the string from back end then it works fine.
I really need help on this as the special characters are really required in the strings and I cannot go in the entire database remove this &# string combination and thus make the data invalid. Below is more details from the metadata of the control I'm using in my app.
namespace Telerik.Web.UI
{
[ClientScriptResource("Telerik.Web.UI.RadGrid", "Telerik.Web.UI.Grid.RadGridScripts.js")]
[ControlValueProperty("SelectedValue")]
[DefaultEvent("NeedDataSource")]
[DefaultProperty("")]
[Description("Telerik RadGrid")]
[Designer("Telerik.Web.Design.RadGridDesigner, Telerik.Web.Design, Version=2012.3.1016.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4")]
[EmbeddedSkin("Grid")]
[EmbeddedSkin("Grid", "Default")]
[TelerikToolboxCategory("Telerik AJAX Data Components")]
[ToolboxBitmap(typeof(RadGrid), "Telerik.Web.UI.Grid.png")]
[ToolboxData("<{0}:RadGrid runat=server></{0}:RadGrid>")]
public class RadGrid : GridBaseDataList, INamingContainer, IPostBackDataHandler, IPostBackEventHandler, IRadFilterableContainer
{
........
........
}