Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
373 views
I have a Development and Production environment both attempting to run the RadEditor Lite version.  In Development everything works as expected.  In production when I attempt to edit a page I get te following error

05/15/2008 18:56:14.90  w3wp.exe (0x1554)                        0x06B8 Windows SharePoint Services    General                        8nca Verbose  Application error when access /schools/test0001/Pages/default.aspx, Error=The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).   at System.Web.UI.ControlCollection.Add(Control child)     at Telerik.RadEditorUtils.RadControl.RegisterCssFile(String path)     at Telerik.RadEditorUtils.RadControl.RenderRuntimeSkin()     at Telerik.RadEditorUtils.RadControl.Page_PreRenderComplete(Object sender, EventArgs e)     at System.EventHandler.Invoke(Object sender, EventArgs e)     at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

The layout page and web.config files are identical on both sites.  any help is appreciated.

I have found several posts that state that you cannot have <%%> in the <head> tag.  The question is why does it work sometimes and not work others.  I do have <%%> in the <head>  but I cannot get rid of them.

Thanks,

Bill
Lennart Burkels
Top achievements
Rank 1
 answered on 23 Nov 2009
2 answers
123 views
Hi ,

I am new to telerik , Here the code from where i used Xml as Datasource for the Rotator, It bind the Images to rotator but those are not rotating the images are static...........

User Control Page

<%

@ Control Language="C#" AutoEventWireup="true" CodeFile="rotator.ascx.cs" Inherits="layout_controls_rotator" %>

 

<%

@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

 

<

 

telerik:RadScriptManager ID="RadScriptManager1" runat="server">

 

</

 

telerik:RadScriptManager>

 

 

<telerik:RadRotator ID="RadRotator1" Width="328px" Height="120px" ScrollDirection="Up" ScrollDuration="600" FrameDuration="6000" ItemHeight="118" ItemWidth="108" DataSourceID="XmlDataSource1" runat ="server">

 

 

<ItemTemplate>

 

 

<img src='<%# XPath("Link")%>' alt = '<%# XPath("title")%>'/>

 

 

</ItemTemplate>

 

 

</telerik:RadRotator>

 

<

 

asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/Rotator.xml"></asp:XmlDataSource>



ASPX page

 

<%

@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="layout_controls_Test" %>

 

<%

@ Register Src="rotator.ascx" TagName="rotator" TagPrefix="uc1" %>

 

<!

 

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

<

 

html xmlns="http://www.w3.org/1999/xhtml" >

 

<

 

head runat="server">

 

 

<title>Rotator</title>

 

</

 

head>

 

<

 

body>

 

 

<form id="form1" runat="server">

 

 

&nbsp;

 

 

<uc1:rotator ID="Rotator1" runat="server" />

 

 

 

</form>

 

</

 

body>

 

</

 

html>

XML File

 


<?

 

xml version="1.0" encoding="utf-8" ?>

 

<

 

RoatatorItems>

 

<

 

item>

 

<

 

title>This is a test 1</title>

 

<

 

Link>C:\Documents and Settings\My Documents\My Pictures\Office1.jpg</Link>

 

</

 

item>

 

<

 

item>

 

<

 

title>This is a test 2</title>

 

<

 

Link>C:\Documents and Settings\My Documents\My Pictures\Office2.jpg</Link>

 

</

 

item>

 

<

 

item>

 

<

 

title>This is a test 3</title>

 

<

 

Link>C:\Documents and Settings\My Documents\My Pictures\Office3.jpg</Link>

 

</

 

item>

 

</

 

RoatatorItems>

 


Praneetha Vegasina
Top achievements
Rank 1
 answered on 23 Nov 2009
4 answers
177 views
Hi,

Our Paragraph style dropdown displays Telerik's predefined set of styles. The Normal style presents inconsistent behavior on IE7/8.
For example, open a blank editor, type some text (let's call it a title) and style it with heading and font color. Press enter and type some more text (call it body-text. see attached image). The style of the title applies also to the body-text. This behavior does not happen if you apply only heading to the title (without font color). Furthermore, trying to apply the Normal style to the body-text produce no visible change at all. Other paragraph styles - headings - do apply but sometimes with the font color and sometimes without.

Another issue (Safari 4 and Chrome 3): Open a blank editor, type some text and style it with heading. Switching to the html mode shows a blank page (even when continuing modify the content on the design mode). You can avoid this behavior if you first press enter on a blank editor.

eyal
Rumen
Telerik team
 answered on 23 Nov 2009
1 answer
199 views
Is there a way to create a grid that has a header that has multiple ImageButtons columns. For instance:

Header1    Header2    Header3                  Header4
data            data           data                           Edit-ImageButton1 Delete-Imagebutton2 

The reason I ask is that I can create this same grid however, I cant evenly decrease the width between ImageButtons 1 through 3 because Header 4 is now associated with only ImageButton1 (Only for display). Header 4 should however be the header for ImageButtons 1- 3. How do I do this? How can I make 1 header that is associated with three different columns which are ImageButtons without repeating the header name for each column.I am creating the entire grid dynamically using C#.
Veli
Telerik team
 answered on 23 Nov 2009
7 answers
280 views
Is there a way to cause a full page refresh from an ajaxified control?

Here is the scenario:
I have a ajaxified grid with a delete column that is in a user control. When the user clicks the delete button, if an error occurs, I would like to be able to write the error to an error control that I have on the master page.

I have been able to add it to the property required to display the error messages, but because the page isn't being redrawn, the error message never displays and the user is left wondering why the record didn't delete.

Thanks,
Dennis
PatD
Top achievements
Rank 1
 answered on 23 Nov 2009
4 answers
77 views
After upgrading to Q3 2009, combobox dropdown arrow and rcbInputCellLeft background images are not showing properly. Do I have to change anything on my code after I updated to the latest Telerik build?
JayCats
Top achievements
Rank 1
 answered on 23 Nov 2009
3 answers
268 views
Hi!

I'm quite new to Sitefinity and the Telerik RadTreeview control. I am trying to convert an old Sitefinity 3.5 site that uses the RadTreeview control in a menu to the latest version 3.7 SP1. The problem is that it seams that the handling of the skin files for the controls seams to have changed a lot between these versions.

An example:
I'm using the 3DBlue skin for the RadTreeview control. In Sitefinity 3.5 the image files for the 3DBlue skin was placed in the folder  [website]\RadControls\Treeview\Skins\Round\3DBlue. In Sitefinity 3.7 I'm trying to mimic this skin look for the RadTreeview control, but everything seams to have changed. I've created a theme "Bright" for my website and created a folder "Bright" inside the folder "App_Themes". I have created a RadTreeView.skin file in this folder which looks like this:

<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> 
<telerik:RadTreeView  
    runat="server"   
    Skin="3DBlue" EnableEmbeddedSkins="false" 
    EnableEmbeddedBaseStylesheet="false">  
</telerik:RadTreeView> 

There is a Bright.css file in the same folder as the .skin-file, this css handles the theme and the placement of the content boxes in the master page. Also I created a folder called "TreeView" in the same "Bright" folder, and this folder contains the specifics for the skin "3DBlue", which I can't get to work properly...

It has a styles.css file for the skin and also a subfolder "img" which contains the images for the node images, the plus and minus images of nodes in the treeview that have sub nodes, and so on.

The problem is that I can't find current information about how to write the styles.css file to control the specifics of the RadTreeView control (in Sitefinity, the "SiteTreeview" control where I've set the Skin property to "3DBlue", the SiteTreeview is just a wrapper for the RadTreeView contro, right?). I have managed to display some of the node line images, but it seams to be impossible to get the plus and minus images to display properly or to set the distance between the nodes so that the lines becomes a continous line, I've tried to control a lot of different classes in the styles.css but it just doesn't display right, even if I try the !important attribute. I've also tried both Firefox and Internet Explorer and to reload the view with Ctrl+F5 between the changes in the css-file. When I've checked the fabricated style code with Firebug I discovered that the important tags of "rtSp" and rtMinus are empty tags, and that seams to be the reason why my css code for these classes doesn't display anything - how do I control these built in classes in the treeview control?

Part of the generated HTML:
<li class="rtLI">  
   <div class="rtMid rtSelected">  
      <span class="rtSp"/>  
      <span class="rtMinus"/>  
      <class="rtIn" href="test1.aspx">test-root</a> 
   </div> 
   <ul class="rtUL">  
      <li class="rtLI">  
      </li> 
      <li class="rtLI">  
      </li> 
      <li class="rtLI rtLast">  
      </li> 
   </ul> 
</li> 

Part of my styles.css:
/*
 * RadTreeView 3DBlue skin
 */ 
 
#Sidebar .RadTreeView_3DBlue li  
{  
    background-imagenone;  
}  
 
/* These images do not display because the tags rtPlus and rtMinus are empty! */ 
.RadTreeView_3DBlue .rtLines .rtPlus  
{  
    backgroundtransparent url(img/Plus.gif) 0 0 no-repeat;  
}  
.RadTreeView_3DBlue .rtLines .rtMinus  
{  
    backgroundtransparent url(img/Minus.gif) 0 0 no-repeat;  
}  
 
/* The selected node is NOT bold, why? */ 
#Sidebar .RadTreeView_3DBlue .rtSelected .rtIn  
{  
    text-weight: bold;  
}  
 
/* These images DO display properly, but the nodes are too
   far away, leaving a gap between each node line */ 
.RadTreeView_3DBlue .rtLines .rtTop  
{  
    backgroundurl(img/TopLine.gif) 0 0 no-repeat;  
}  
.RadTreeView_3DBlue .rtLines .rtMid  
{  
    backgroundurl(img/MiddleCrossLine.gif) 0 0 no-repeat;  
}  
.RadTreeView_3DBlue .rtLines .rtBot  
{  
    backgroundurl(img/BottomLine.gif) 0 0 no-repeat;  
}  
 

Would very much appreciate a clue to what documentation there is about this and where to find it, when I search the web I only find information about older versions of Sitefinity and the skin-handling seams to have changed a lot since then? Some clues or solutions to what I'm doing wrong would also be highly appreciated, I've tried to sort this out for a long time now.

Kind regards!
Ronny
Ivan Dimitrov
Telerik team
 answered on 23 Nov 2009
3 answers
109 views
I'm using version 2009.3.1103.35 and I'm testing in Firefox and IE7.
Here's my schedule markup:

        <telerik:RadScheduler    ID="RadScheduler1"  
                                            runat="server"  
                                            Height="800" 
                                            HoursPanelTimeFormat="htt"  
                                            ValidationGroup="RadScheduler1"  
                                            Skin="WebBlue" SelectedView="WeekView"  
            ShowFullTime="True" StartInsertingInAdvancedForm="True"  
            MaximumRecurrenceCandidates="10000" > 
            <WebServiceSettings Path="SchedulerWebService.asmx"  
                ResourcePopulationMode="ServerSide" /> 
            <advancedform maximumheight="550px" modal="True"  
                enablecustomattributeediting="True" enableresourceediting="False" /> 
            <AppointmentContextMenuSettings EnableDefault="true" /> 
        </telerik:RadScheduler> 

For some reason I'm seeing that at times the end date calendar doesn't show up at all when I click the calendar control drop down.  I can only alter the text of the date.
I've also been seeing that the end date calendar becomes unresponsive sometimes where I can' change the month using the navigation arrows.

I've been having authentication issues with my web server as well: see this link
I'm not sure if this has anything to do with it. I marked the response as an answer because it seemed like things were resolved on my end but I'm getting that error once again.


Peter
Telerik team
 answered on 23 Nov 2009
6 answers
199 views
Hi,

I have a grid control which has some data. I want to export to data to excelML. I have read your demo (http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/exporting/defaultcs.aspx) and applied it. But could not resolve a problem. When it enters the function:

protected void RadGridOrders_ExcelMLExportRowCreated(object source, Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowCreatedArgs e) 
        { 
            if (e.RowType == Telerik.Web.UI.GridExcelBuilder.GridExportExcelMLRowType.DataRow) 
            { 
                if (e.Row.Cells[0] != null && ((string)e.Row.Cells[0].Data.DataItem).Contains("U")) 
                { 
                    e.Row.Cells[0].StyleValue = "MyCustomStyle"
                } 
            } 
        } 


It gives the error "index out of range". There e.Row.Cells.Count is always zero. But when i try to export it to just EXCEL there is no problem. Below is my Grid.

                <telerik:RadGrid ID="RadGridOrders" runat="server" AllowPaging="True" 
                Width="95%" OnExcelMLExportStylesCreated="RadGridOrders_ExcelMLExportStylesCreated" 
            OnExcelMLExportRowCreated="RadGridOrders_ExcelMLExportRowCreated" 
                    DataSourceID="DataSourceOrders" GridLines="None"
                    <ExportSettings ExportOnlyData="True" FileName="SatışRaporları"  
                        IgnorePaging="True"
                    </ExportSettings> 
                    <MasterTableView Width="100%" AutoGenerateColumns="False"
                        <Columns> 
                            <telerik:GridBoundColumn DataField="CalculatedCargoPrice"  
                                DataType="System.Decimal" HeaderText="CalculatedCargoPrice" ReadOnly="True"  
                                SortExpression="CalculatedCargoPrice" UniqueName="CalculatedCargoPrice"
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="CalculatedItemPrice"  
                                DataType="System.Decimal" HeaderText="CalculatedItemPrice" ReadOnly="True"  
                                SortExpression="CalculatedItemPrice" UniqueName="CalculatedItemPrice"
                            </telerik:GridBoundColumn> 
                            <telerik:GridBoundColumn DataField="NameSurname" HeaderText="NameSurname"  
                                ReadOnly="True" SortExpression="NameSurname" UniqueName="NameSurname"
                            </telerik:GridBoundColumn> 
                        </Columns> 
                    </MasterTableView> 
                </telerik:RadGrid> 

I am using LinqDataSource while populating the grid.

Regards.
Daniel
Telerik team
 answered on 23 Nov 2009
1 answer
130 views

Hi,

We have some problems to add custom css styles to RadEditor in Moss.
We made a file 'cssEditor.css' in which we defined custom css styles. However the dropdown is still showing us the default 'clear class'.
We tried already different solutions but it still remains the same. We already tried the following : added a line in configfile to point to 'cssEditor.css', added classes to 'toolsfile',.... We use version 5.5.1.0.
CssEditor:

body
{

 font-family: Arial !important;
 font-size: 11pt !impotant;

}

title

{

 font-family: Verdana ;
 font-size: 16pt ;
}

Toolsfile :
<root>
  <modules>
    <module name="RadEditorDomInspector" />
  </modules>
 
  <tools name="MossTools1">
    <tool name="AjaxSpellCheck" shortcut="F7"/>
    <tool name="FindAndReplace" />
    <tool separator="true" />
    <tool name="Cut" shortcut="CTRL+X" />
    <tool name="Copy" shortcut="CTRL+C" />
    <tool name="PastePlainText" shortcut="CTRL+V" />
    <tool name="PasteAsHtml" />  
    <tool separator="true" />
    <tool name="Undo" shortcut="CTRL+Z" />
    <tool name="Redo" shortcut="CTRL+Y" />
    <tool separator="true" />
    <tool name="MOSSLinkManager" shortcut="CTRL+K" />
    <tool name="Unlink" shortcut="CTRL+SHIFT+K" />
    <tool name="ImageManager" shortcut="CTRL+G" />
    <tool name="MOSSTemplateManager" />
    <tool name="DocumentManager" />
    <tool separator="true" />
    <tool name="MOSSInsertTable" />
    <tool name="SetTableProperties" />
    <tool name="ToggleTableBorder" />
    <tool separator="true" />
    <tool name="MOSSInsertTableElement">
      <tool name="InsertRowAbove" />
      <tool name="InsertRowBelow" />
      <tool name="InsertColumnLeft" />
      <tool name="InsertColumnRight" />
      <tool name="DeleteRow" />
      <tool name="DeleteColumn" />
      <tool name="SplitCell" />
    </tool>
    <tool name="MergeColumns" />
    <tool separator="true" />
    <tool name="ToggleSource" />
    <tool name="FormatStripper" />
    <tool separator="true" />
    <tool name="MOSSRightToLeft" />
    <tool name="MOSSLeftToRight" />
  </tools>
  <tools name="MossTools2">
    <tool name="ApplyClass" />
    <tool name="FormatBlock" />
    <tool separator="true" />
    <tool name="FontName" />
    <tool name="RealFontSize" />
    <tool separator="true" />
    <tool name="Bold" shortcut="CTRL+B" />
    <tool name="Italic" shortcut="CTRL+I" />
    <tool name="Underline" shortcut="CTRL+U" />
    <tool separator="true" />
    <tool name="JustifyLeft" />
    <tool name="JustifyCenter" />
    <tool name="JustifyRight" />
    <tool separator="true" />
    <tool name="InsertOrderedList" />
    <tool name="InsertUnorderedList" />
    <tool separator="true" />
    <tool name="Indent" />
    <tool name="Outdent" />   
  </tools>
  <fontNames>
    <item name="Arial" />
 </fontNames>
  <realFontSizes>
    <item value="11pt"></item>
    <item value="12pt"></item>
    <item value="14pt"></item>
    <item value="16pt"></item>
  </realFontSizes>
   <tools name="MossTools3">
    <tool name="ForeColor" />
    <tool name="BackColor" />
    <tool separator="true" />  
    <tool name="InsertSymbol" />     
    <tool name="Help" />
 </tools>
   <colors>
    <color value="#0085bd" />
    <color value="#86a20b" />
    <color value="#454748" />
   </colors>    
  <contextMenus>
    <contextMenu forElement="*">
      <tool name="Cut"/>
      <tool name="Copy"/>
      <tool name="Paste"/>
      <tool name="InsertParagraph"/>
      <tool name="FormatBlock" />
      <tool name="Superscript" />
      <tool name="Subscript" />   
    </contextMenu>
  </contextMenus>
</root>

Configfile :

<?xml version="1.0" encoding="utf-8" ?>
<!-- ==============================================================================================
 Config File valid structure:
 <configuration>
    <property>...</property>
    ...
  <property>
   <item>...</item>
   <item>...</item>
   ...
  </property>
  ...
 </configuration>
=============================================================================================== -->
<configuration>
 

 
 <property name="ToolbarMode">ShowOnFocus</property>
 <property name="ToolsWidth">680px</property> 
</configuration>

Stanimir
Telerik team
 answered on 23 Nov 2009
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?