Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
80 views
I am using the Outlook skin with the RadEditor.
I have the node inspector module visible. The issue is that the node inspector box is not tall enough to show the correctly.
This is particularly bad when viewing a table cell properties.
Is there a fix for this issue?



Martin
Telerik team
 answered on 01 Sep 2009
4 answers
322 views

For some months now we have been working on a large .NET application that will serve as the Proposal Development System for our company. Because the methods of developing proposals vary significantly between the Eastern and Western divisions of our company, we have developed some of our pages to display Eastern or Western versions of themselves depending on the location of the user. This is accomplished by first determining the user’s location and then by loading appropriate user controls (.ascx) depending on that location.

In our application we have a web page (.aspx) which, in turn contains an update panel. This update Panel contains a placeholder into which an appropriate user control (Eastern or Western) will eventually be loaded. The main .aspx page also contains a checkbox which, when checked will indicate that some of the buttons on the screen need to be disabled. One of these buttons is actually contained in the user control.

In addition to the button, the .ascx controls also contains a RadGrid. In both Eastern and Western .ascx controls the RadGrids are named WBSGrid.

Finally the .aspx page contains both a ScriptManager ( actually a ScriptManagerProxy, as the actual ScriptManager is contained in our Master Page) and a RadAjaxManager.

 

The Update Panel in the .aspx document is defined as follows:

 

<asp:UpdatePanel ID="WBSUpdatePanel"  runat="server" UpdateMode="Conditional">

    <ContentTemplate> 

        <asp:Panel ID="pnlWBSControls" runat="server"

                   Style="padding: 5px;" 

                   ScrollBars="None">

        <asp:PlaceHolder ID="phPnlWBSControls" runat="server"></asp:PlaceHolder>

        </asp:Panel>

    </ContentTemplate>

    <Triggers>

        <asp:AsyncPostBackTrigger ControlID="ckbLocked" />

     </Triggers>

</asp:UpdatePanel>

 

Notice the placeholder, phpnlWBSControls, where we will load our ascx controls. The trigger is required to allow the contents of the Update Panel to be re-rendered when the trigger changes.   

 

There is also a RadAjaxManager in the .aspx document which references WBSGrid and is defined as follows:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">

    <AjaxSettings>

        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="TeamMembersGrid" />

            </UpdatedControls>

        </telerik:AjaxSetting>

        <telerik:AjaxSetting AjaxControlID="TeamMembersGrid">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="TeamMembersGrid" />

            </UpdatedControls>

        </telerik:AjaxSetting>

   

        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="WBSGrid" />

            </UpdatedControls>

        </telerik:AjaxSetting>

        <telerik:AjaxSetting AjaxControlID="WBSGrid">

            <UpdatedControls>

                <telerik:AjaxUpdatedControl ControlID="WBSGrid" />

            </UpdatedControls>

        </telerik:AjaxSetting>

    </AjaxSettings>

</telerik:RadAjaxManager>

 

Here is our problem:

1.       Let’s presume, for the moment, that we start with the checkbox not checked. If, for the life of the event in which the page participates, we do not check it, the page performs flawlessly.

2.       If we check the checkbox, the following problems crop up:

a.       The button we are trying to disable in the user control is disabled. However we also want to hide the Command Item Display of the Grid and this does not happen

b.       We receive an ajaxified error message ‘A Control is already associated with the element’ – we believe the ‘element’ to be the RadGrid from the user control.

c.        If we then attempt (within the same session) to make any alterations within the RadGrid the display becomes corrupted. Essentially all of the headings within the RadGrid are shifted to the far right of the page with all of the rows within the grid being shifted to the far left of the page.

d.       If we try to add a new record to the grid using the Command Item Display that we had tried to hide, the add fails silently and we see the corrupted screen described earlier.

e.       If we leave the checkbox checked, navigate away from the page in question, and come back in with the same transaction, the RadGrid’s rendering and behavior seem to be corrected.

f.         If after doing step e we uncheck the checkbox we receive the error mentioned in step b and the RadGrid reverts back to it’s unusual behavior.

3.       If I comment out the line of code that tries to hide the Command Item Display within the RadGrid, the error message from item c persists but the RadGrid does not get corrupted.

4.       Removing the Triggers note from the Update Panel and/or changing the Update Mode to ‘Always’ does not correct the problem.

Can you suggest a solution?    

Sebastian
Telerik team
 answered on 01 Sep 2009
1 answer
112 views
I am applying FormDecorator to my pages to apply office-2007 theme to buttons. It is showing the buttons correctly with appropriate theme set. But, when I try to assign any custom CSS class the effect of FormDecorator vanishes..
So, Is like that - when you use FormDecorator to decorate say button, you can apply custom css class to it (basically i want to show up and down image on buttons for which i am trying to write custom css class but it removes the formdecorator effect)
Svetlina Anati
Telerik team
 answered on 01 Sep 2009
1 answer
87 views

Hello everyone

We are using the Telerik RadEditor for MOSS and have stumbled upon a problem with upgrading the editor.

A WebPart exists that uses the default content editor in moss, but when editing it, it is edited by the 5.2 version of the RadEditor. This seems to cause a problem after our upgrade to 5.5, where the following error occurs:

Server Error in '/' Application.

--------------------------------------------------------------------------------

Invalid Configuration File:/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/ConfigFile.xml

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.Exception: Invalid Configuration File:/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/ConfigFile.xml

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:

[Exception: Invalid Configuration File:/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/ConfigFile.xml]

   Telerik.SharePoint.MOSSRadEditor.GetValidConfigFile() +208

   Telerik.SharePoint.MOSSRadEditor.ProcessConfigFile() +125

   Telerik.SharePoint.MOSSRadEditor.OnLoad(EventArgs e) +20

   System.Web.UI.Control.LoadRecursive() +66

   System.Web.UI.Control.AddedControl(Control control, Int32 index) +350

   Telerik.SharePoint.RadEditorToolPart.OnPreRender(EventArgs e) +150

   System.Web.UI.Control.PreRenderRecursiveInternal() +108

   System.Web.UI.Control.PreRenderRecursiveInternal() +224

   System.Web.UI.Control.PreRenderRecursiveInternal() +224

   System.Web.UI.Control.PreRenderRecursiveInternal() +224

   System.Web.UI.Control.PreRenderRecursiveInternal() +224

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394

 

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082

Contents of the config file (/_wpresources/RadEditorSharePoint/5.2.0.0__1f131a624888eeed/Resources/ConfigFile.xml):

<configuration>

  <property name="AllowThumbGeneration">True</property>

  <property name="ConvertToXhtml">True</property>

  <property name="enableXHTML">True</property>

  <property name="EnableDocking">False</property>

  <property name="ShowHtmlMode">True</property>

  <property name="ShowPreviewMode">False</property>

  <property name="ToolbarMode">ShowOnFocus</property>

  <property name="ToolsWidth">800px</property>

  <property name="Width">400px</property>

  <property name="Skin">Office2007</property>

  <property name="NewLineBr">false</property>

  <property name="CausesValidation">true</property>

</configuration>

The WebPart that is placed on the webpage is configured like so:

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

<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">

  <Title>Kampagne</Title>

  <FrameType>None</FrameType>

  <Description>Bruges til at udarbejde et kampagne med HTML</Description>

  <IsIncluded>true</IsIncluded>

  <ZoneID>EmnesideBundVenstre</ZoneID>

  <PartOrder>1</PartOrder>

  <FrameState>Normal</FrameState>

  <Height />

  <Width />

  <AllowRemove>true</AllowRemove>

  <AllowZoneChange>true</AllowZoneChange>

  <AllowMinimize>true</AllowMinimize>

  <AllowConnect>true</AllowConnect>

  <AllowEdit>true</AllowEdit>

  <AllowHide>true</AllowHide>

  <IsVisible>true</IsVisible>

  <DetailLink />

  <HelpLink />

  <HelpMode>Modeless</HelpMode>

  <Dir>Default</Dir>

  <PartImageSmall />

  <MissingAssembly>Webdelen kan ikke importeres.</MissingAssembly>

  <PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge>

  <IsIncludedFilter />

  <Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>

  <TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>

  <ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />

  <Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[ <div class="RSJheading RSJcampaign">

                                    <h1>Kampagnefelt</h1>

                                </div>

                                <div class="RJSimage">

                                    <img src="/_layouts/1030/images/rsjIntra/temp_campaign01.jpg" alt="Kampagne1" />

                                </div>

                                <div class="RSJcontent">

                                    <b><a href="#" class="RSJreadmore">Lorem ipsum purus egastas</a></b>

                                    Duis aute in voluptate velit esse cillum dolore eu fugiat nulla parit.

                                </div>

                                <hr class="RSJaccessibility"/>]]></Content>

  <PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />

</WebPart>

But when editing the WebPart, the problem occurs.

How do I set the default editor to the new version 5.5?

I have edited the web.config file and added:

      <!-- Rad Editor, 1.0.0.0 -> 5.5 -->

      <dependentAssembly>

        <assemblyIdentity name="RadEditorSharePoint" publicKeyToken="1f131a624888eeed" culture="neutral" />

        <bindingRedirect oldVersion="1.0.0.0-5.4.0.0" newVersion="5.5.0.0" />

      </dependentAssembly>

      <!-- /Rad editor -->

Can anybody help?

Stanimir
Telerik team
 answered on 01 Sep 2009
4 answers
67 views
Hi

I have a page A and B. Both pages are internal MOSS pages. Page A links to page B and the link is created using the MOSSLinkManager button. Page B is the moved to another page list on the MOSS. The result is that I end up with a broken link from page A to page B. Shouldn't the link be corrected automatically? I belive this is standard behaviour with the build-in Sharepoint editor.

I'm using the RAD Editor for SharePoint (v5.2.0.0).

Regards
Joachim Hoffmann
Joachim Hoffmann
Top achievements
Rank 1
 answered on 01 Sep 2009
5 answers
185 views
Hi,

I want to implement some wizard-like functionality. When the user clicks a "next" button inside a RadWindow the content of the window shall be replaced by another page. I have tried this with redirect but it didn't work as expected.
What is a suggested way to implement this behaviour.

Best regards,
Robert
Georgi Tunev
Telerik team
 answered on 01 Sep 2009
1 answer
93 views
Hello Techies,

We are using RadHtmlField control for writing content and images for certain pages.

We have an requirement to paste the image in RadHtmlField along with content from MS Word/Paint etc.

Any clue/link.. How to do it?

Thanks,
Tarun
Stanimir
Telerik team
 answered on 01 Sep 2009
7 answers
293 views
hi,

im using telerik on my masterpage as followed. I registered telerik, i have the RadScriptManager and the RadMenu but in my IE i get a normal list of my radmenuitems. no nice graphics or anything ...

------------masterpage code---------
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Src="~/Controls/Logout.ascx" TagName="Logout" TagPrefix="uc2" %>
...
<form id="form1" runat="server">
    
        <telerik:RadScriptManager ID="RadScriptManager" runat="server">
        </telerik:RadScriptManager>
            
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager" Runat="server">
        </telerik:RadStyleSheetManager>
            
        <telerik:RadSkinManager ID="RadSkinManager" Runat="server" Skin="Vista">
        </telerik:RadSkinManager>
    
         <table cellpadding="0" cellspacing="0">
            <tbody valign="top">
                <tr>
                    <td>
                        <asp:Image runat="server" ID="imgLogo" ImageUrl="~/Images/iflows_logo.jpg" />
                    </td>
                    <td>
                        <asp:Label runat="server" ID="lblTop" Text="labelname"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <uc2:Logout runat="server" ID="ucLogout" />                    
                    </td>
                    <td>
                        <telerik:RadMenu ID="RadMenu1" Runat="server" DefaultGroupSettings-Flow="Horizontal">
                            <Items>
                                <telerik:RadMenuItem Text="Documents">
                                    <Items>
                                        <telerik:RadMenuItem Text="Search"></telerik:RadMenuItem>
                                        <telerik:RadMenuItem Text="Upload"></telerik:RadMenuItem>
                                    </Items>
                                </telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Settings">
                                </telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenu>
                    </td>
                </tr>
                <tr>
                    <td>
                        
                    </td>
                    <td>
                        <asp:Label ID="errorLabel" runat="server"></asp:Label>
                        <div>
                            <asp:ContentPlaceHolder ID="MainContentPlaceHolder" runat="server">
                            </asp:ContentPlaceHolder>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>

------------/ masterpage code---------

shouldnt i be able to see the same style and effects as in the Telerik Live Demo ? And why not ? Or what ive done wrong?

thx Mario
Eric Fransen
Top achievements
Rank 2
 answered on 01 Sep 2009
1 answer
74 views
Scenario:  I have a RadGrid, with a Template based edit form, and a column hooked to a RadToolTipManager.  The TooltipManager performs a LOD of a usercontrol in modal mode.  This all works well.  The issue comes if you try to click the Edit column of the grid after viewing/closing any tooltips.  A javascript error of "parentNode is null or not an object" is shown.

I turned the modal mode on the tooltip manager to false and the problem doesn't appear.  As soon as I turn modal = true the problem reappears.  In this instance I need the modal functionality. 

Any Ideas?

-T
Veli
Telerik team
 answered on 01 Sep 2009
1 answer
247 views
I think I found a bug with ToolTip and Chrome, my test code works in IE just fine but in Chrome I get this error on mouse over:
Uncaught Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name: x
Actual value as Nan.

if i don't set a contentscrolling value this error does not show and the tooltip is displayed

Can you reproduce this?
aspx code
    <asp:Panel ID="GridPanel" runat="server"
        <id="LINKIT">TEXT FOR ROLLOVER</a> 
    </asp:Panel>  

code behind
 protected void Page_Load(object sender, EventArgs e) 
    { 
        StringBuilder daText = new StringBuilder(); 
        daText.Append("TEST<br>"); 
        daText.Append("TEST<br>"); 
        daText.Append("TEST<br>"); 
        RadToolTip rtp1 = new RadToolTip(); 
        rtp1.Skin = "Vista"
        rtp1.Text = daText.ToString(); 
        rtp1.Sticky = true
        rtp1.Position = ToolTipPosition.BottomCenter; 
        rtp1.TargetControlID = "LINKIT"
        rtp1.IsClientID = true
        rtp1.ShowEvent = ToolTipShowEvent.OnMouseOver; 
        rtp1.Width = new Unit("300px"); 
        rtp1.Height = new Unit("250px"); 
        rtp1.Animation = ToolTipAnimation.Fade; 
        rtp1.HideEvent = ToolTipHideEvent.LeaveToolTip; 
        rtp1.ContentScrolling = ToolTipScrolling.Auto; 
        GridPanel.Controls.Add(rtp1); 
    } 

Svetlina Anati
Telerik team
 answered on 01 Sep 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?