Hello,
We have started getting the error "The state information is invalid for this page and might be corrupted." on one of our forms that use a RadEditor control. We are using VS 2008 with RadControls for ASP.Net AJAX Q2 2009 version 2009.2.701.20. This pretty much just started happening out of no where.
We have narowed it down to formatting like bolding or underling any text it causes the error. If there is no formatting there is no error.
I have done some searching on Google and tried the following with no luck:
set pages maxPageStateFieldLength="10000" in web.config file
@ Page Language="c#" EnableViewStateMAC="false" EnableViewState="true" ...
tried replacing the control with a new one
Here is the aspx code: pretty basic
| <telerik:radeditor runat="server" ID="txtContent" Width="100%" EditModes="Design, Preview" ToolsFile="~/App_Data/RadEditor/BasicToolbar.xml" > |
| <Modules> |
| <telerik:EditorModule Name="RadEditorDomInspector" Visible="true" Enabled="true" /> |
| </Modules> |
| </telerik:radeditor> |
Also, here is our BasicToolbar.xml file:
| <?xml version="1.0" encoding="utf-8" ?> |
| <root> |
| <tools name="MainToolbar" dockable="false" enabled="true"> |
| <tool name="AjaxSpellCheck" /> |
| <tool name="Print" /> |
| <tool name="FindAndReplace" /> |
| <tool separator="true"/> |
| <tool name="Cut" /> |
| <tool name="Copy" /> |
| <tool name="Bold" /> |
| <tool name="Italic" /> |
| <tool name="Underline" /> |
| <tool name="Paste" /> |
| <tool name="PasteFromWord" /> |
| <tool name="PastePlainText" /> |
| <tool name="PasteAsHtml" /> |
| <tool name="FormatStripper" /> |
| <tool separator="true"/> |
| <tool name="Undo" /> |
| <tool name="Redo" /> |
| </tools> |
| </root> |
If anyone has any idea why we are experiecing this your help would be greatly appreciated.

| <table width="994px" cellpadding="0" cellspacing="0" border="0"> |
| <tr> |
| <td width="50px" class="tdBackgroundBlueLeft"> |
| |
| </td> |
| <td width="894px" class="tdtop_bot_thin_blue"> |
| <div class="CustomItem"> |
| <telerik:RadMenu ID="RadMenu1" runat="server" Width="780px" Skin="Web20" EnableEmbeddedSkins="true" |
| BackColor="White" Style="text-align: justify" BorderWidth="0" BorderColor="White"> |
| <Items> |
| <telerik:RadMenuItem Text="home" Font-Size="13px" Font-Bold="True" ForeColor="Navy" |
| Style="text-align: justify; text-indent: 10px" BackColor="White" BorderWidth="0px" |
| BorderColor="White" Font-Names="Arial" NavigateUrl="Default.aspx"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem Text="about us" IsSeparator="false" Font-Size="13px" Font-Bold="True" |
| ForeColor="Navy" Style="text-indent: 20px" BackColor="White" BorderWidth="0px" |
| BorderColor="White" Font-Names="Arial"> |
| <Items> |
| <telerik:RadMenuItem Width="250px" Text="market leadership" ForeColor="Navy" Style="border-top: none !important; |
| border-left: none !important; border-bottom: none !important; border-right: none !important"> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem Text="our team" Font-Size="13px" ForeColor="Navy" BackColor="White" |
| Style="text-indent: 20px" BorderWidth="0px" Font-Bold="True" Font-Names="Arial"> |
| <Items> |
| <telerik:RadMenuItem Width="250px" Text="administration" Style="border-top: none !important; |
| border-left: none !important; border-bottom: none !important; border-right: none !important" |
| ForeColor="Navy"> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem Text="our services" Font-Size="13px" ForeColor="Navy" BackColor="White" |
| Style="text-indent: 20px" BorderWidth="0px" Font-Bold="True" Font-Names="Arial"> |
| <Items> |
| <telerik:RadMenuItem Width="250px" Style="border-top: none !important; border-left: none !important; |
| border-bottom: none !important; border-right: none !important" ForeColor="Navy" |
| Text="market research"> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem Text="case studies" Font-Size="13px" ForeColor="Navy" BackColor="White" |
| Style="text-indent: 20px" BorderWidth="0px" Font-Bold="True" Font-Names="Arial"> |
| </telerik:RadMenuItem> |
| <telerik:RadMenuItem Text="knowledge center" Font-Size="13px" ForeColor="Navy" BackColor="White" |
| Style="text-indent: 20px" BorderWidth="0px" Font-Bold="True" Font-Names="Arial"> |
| <Items> |
| <telerik:RadMenuItem Width="250px" Style="border-top: none !important; border-left: none !important; |
| border-bottom: none !important; border-right: none !important" ForeColor="Navy" |
| Text="advisor insights "> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenuItem> |
| </Items> |
| </telerik:RadMenu> |
| </div> |
| </td> |
| <td width="50px" class="tdBackgroundBlueRight"> |
| |
| </td> |
| </tr> |
| </table> |
GridBoundColumn
sc = (GridBoundColumn)e.Column;
sc.DataFormatString = "{0:###,### KB}";
RadFileExplorer1.Grid.Columns.RemoveAt(1);
It makes header part disappeared, but it still shows the size value in the data grid.
I also tried to use Grid ItemDataBound as follows, it doesn't work. I found after fired RadFileExplorer1_Grid_ItemDataBound, the RadFileExplorer1 refreshes whole grid again and make it as it was, i.e., before my rendering is applied.
protected
void RadFileExplorer1_Grid_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
GridDataItem item = (GridDataItem)e.Item;
item["Size"].Text = string.Format("{0:###,### KB}", item["Size"].Text);
}
}
As far as what i've successed in the format change is just an alignment as like:
protected
void RadFileExplorer1_Grid_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
RadFileExplorer1.Grid.Columns[1].ItemStyle.HorizontalAlign = HorizontalAlign.Right;
RadFileExplorer1.Grid.Columns[1].ItemStyle.Width = 30;
RadFileExplorer1.Grid.Columns[1].HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
RadFileExplorer1.Grid.Columns[1].HeaderStyle.Width = 30;
}
Thanks.

ResolveRootDirectoryAsTree, and ResolveDirectory Overriden functions to display only certain files and certain folders to the user based on their custom security, however this does not prevent Writing, Deleting, Moving, Uploading and copying Folders and files or the context menus.
what I am looking for is a way to enable, and disable the various context menus that would allow the user to Write, Delete, Move, Upload, and copy folders and files based on their custom security. The users security info is stored in custom session variables.
