Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
265 views

 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.

Rumen
Telerik team
 answered on 08 Feb 2010
4 answers
92 views

 

I need to stretch the menu which I have but when you hoverover there is a vertical line which I can't remove. I've research and tried everything I can find and need to desparately complete this.
<table width="994px" cellpadding="0" cellspacing="0" border="0">     
        <tr>    
            <td width="50px" class="tdBackgroundBlueLeft">     
                &nbsp;     
            </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">     
                &nbsp;     
            </td>    
        </tr>    
    </table>    
 

Jains
Top achievements
Rank 1
 answered on 08 Feb 2010
1 answer
142 views
Hi,
I'm having a little trouble styling the first node of my treeview, I would like to differentiate between style of rtFirst and rtTop. How can I style the first node and the top node - what classes would I ned to use?
Thanks.
Yana
Telerik team
 answered on 08 Feb 2010
3 answers
263 views
How can I open the div on the cursor positon(text blinker) inside the editor using javascipt. I found the methods
the editor.getSelection().getRange() and editor.getSelection().selectRange(rangeObject) methods.
But this will work when we select the text but my requirement is to open the div without selecting the text

Thanks
Ritu
Dobromir
Telerik team
 answered on 08 Feb 2010
3 answers
445 views
I tried to change the format of Size column in the FileExplorer Grid control. e.g., 1,234 KB, etc. with DataFormatString if possible, such as

GridBoundColumn

sc = (GridBoundColumn)e.Column;

sc.DataFormatString = "{0:###,### KB}";


However, I couldn't find a way to modifiy it. Even, I tried to make it invisible using

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.

Fiko
Telerik team
 answered on 08 Feb 2010
3 answers
305 views
Hi All

I have a site I am working on at work and I am using MasterPages, ContentPages and Telerik user controls.

One page I am working on is using a TreeView inside a splitter (pane 1) and a listview inside Pane 2. On the MasterPage I have
a RadAjaxManager with all the settings for specific content pages... In the process of moving to content pages code behind using a Master page property accessor for AjaxManager.

My problem is that the treeView node click updates an object datasource (ArrayList) and then the NeedDataSource event handler on the list view needs to fire to get it. Except I'm having issues with getting this all working using the Ajax Manager settings. The smart tag designer did nothing either.

I tried setting the rebind event at the Item click event on TreeView this works however after one NeedDataSource event handler has fired any other Rebinds fail with server code 500.

I had it working with the AjaxManager settings in the markup but needed to change a setting now it doesnt work.
Can anyone provide valid AjaxManager settings to set this all up.

Thanks in advance

Chris
Sebastian
Telerik team
 answered on 08 Feb 2010
1 answer
112 views
Hi

We have a line graph plotting percentages over time.  Being percentages, the minimum value on the y-axis is 0% and maximum is 100%.

When a series goes to either extreme (0 or 100%) for more than one unit of time, it effectively disappears and limits readability.  (see attachment).  We would like these lines to remain visible.

Any thoughts on how prevent this would be appreciated.

Cheers
Giuseppe
Telerik team
 answered on 08 Feb 2010
1 answer
131 views
Hello,


There was am error loading types from assembly 'D:\sample\Bin\Telerik.Web.UI.dll' 'could not load
file or assembly 'Telerik,charting,Version=1.6.0.0, Culture=neutral,PublickeyToken=d14f3dcc8e3e8763'
or one of its dependencies.The system cannot find the file specified.'

Thanks in advance....
Schlurk
Top achievements
Rank 2
 answered on 08 Feb 2010
1 answer
189 views
I want to use the FileExplorer control to display files and folders to my users.

I have a shared network Folder that I want to apply this control too, I also have a database of custom security info for each file and folder in the network folders. So because I have custom security, and the data is in the database, and the physical files are on a shared network folder, I have to apply both physical folder manipulation and custom security based on data that corrosponds to the info store in the database. So I figured that I should start by extending the FileSystemContentProvider .

Here is my scenario...

Some users are Admins, and have the ability to Write, Delete, Move, Upload, Copy and Read folders and Files.
Some users are Field Admins and have the ability to Write, Delete, Move, Upload, Copy and Read folders and files Only in certain folders.
And Some users are read only, and cannot have the ability to Write, Delete, Move, Upload and Copy folders and files anywhere, only the ability to read the files and folders.

I have started by extending the FileSystemContentProvider by putting my own security checks in the 

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.


Fiko
Telerik team
 answered on 08 Feb 2010
3 answers
174 views
Hi All,

I have a RadMenu control on my page. After I select a menuitem (triggerd the OnClientItemClicked event), the menuitem remain selected when I move the pointer away. How can I unselect the item to display it it's normal (not selected) style?

Thanks.
Schlurk
Top achievements
Rank 2
 answered on 08 Feb 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?