Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
345 views
Hi

I am seeing a very strange message at design time on a previously good master page, and
it may be something to do with a potted application that I have been using to debug elsewhere..

 Error Rendering Control - RadScriptManager1An unhandled exception has occurred.
[A]Telerik.Web.UI.RadScriptManager cannot be cast to [B]Telerik.Web.UI.RadScriptManager.
Type A originates from 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Users\Clive\AppData\Local\Microsoft\VWDExpress\9.0\ProjectAssemblies\pb6zak8y01\telerik.web.ui.dll'.
 Type B originates from 'Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' in the context 'LoadNeither' at location 'C:\Users\Clive\AppData\Local\Microsoft\VWDExpress\9.0\ProjectAssemblies\nvgtosjo01\telerik.web.ui.dll'.
Clive Hoggar
Top achievements
Rank 1
 answered on 22 Sep 2009
1 answer
159 views
Hi all,

I know that Telerik earlier have stated that there is no support using the RadEditor's ImageManager for handling images in the MOSS' RichImageField.
There is one way you can do this, by visiting this thread you can see how (requires login):
http://www.telerik.com/support/kb/aspnet-ajax/editor/using-the-image-and-document-managers-outside-radeditor.aspx

But the downside of this solution is the need of code-behind. My page layout is as of this date code-behind free, and I would like to keep it this way.
So I tested using the RadHtmlField inplace of the RichImageField in my page layout. I also created a new ToolsFile.xml and ConfigFile.xml (called ImageToolsFile.xml and ImageConfigFile.xml) and referenced these in the page layout:

<radE:RadHtmlField ToolsFile="/_wpresources/RadEditorSharePoint/5.5.1.0__1f131a624888eeed/Resources/ImageToolsFile.xml" 
                    ConfigFile="/_wpresources/RadEditorSharePoint/5.5.1.0__1f131a624888eeed/Resources/ImageConfigFile.xml" id="ContentQueryImage" FieldName="PublishingRollupImage" AllowHyperLinks="false" runat="server"/> 
 

Here are the contents of the two custom xml files:
ImageConfigFile.xml:

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <property name="ToolbarMode">ShowOnFocus</property> 
    <property name="ToolsWidth">200px</property> 
</configuration> 

ImageToolsFile.xml

<?xml version="1.0" encoding="utf-8" ?> 
<root> 
  <modules> 
      <module name="RadEditorDomInspector" /> 
  </modules> 
  <tools name="InsertToolbar" > 
    <tool name="ImageManager" shortcut="CTRL+G"/> 
  </tools> 
 
  <contextMenus> 
    <contextMenu forElement="IMG"
      <tool Name="SetImageProperties" /> 
      <tool Name="ImageMapDialog" /> 
    </contextMenu> 
  </contextMenus> 
</root> 

The only thing enabled in the ImageToolsFile.xml file is the ImageManager. So far, everything works as expected. I click on the ImageManager icon in the toolbar, upload a new image, select the image, and the image gets inserted into the editor.
I save the page, and go back to the site's front page (default.aspx), and the rollup image is displayed as expected.

The trouble begins when trying to edit the page. I go back into the page, and click Edit page. I then get the following error:

Failed to set value of the "Rollup Image" column on the "Publishing Image" field type control.  See details in log. Exception message: Unable to cast object of type 'Microsoft.SharePoint.Publishing.Fields.ImageFieldValue' to type 'System.String'..

So to summarize: It seems to me that there is some kind of implicit casting when saving the image information, but not when loading it when viewing or editing the page.
Does someone have a fix for this, or maybe Telerik can put this on the winshlist for the next version? :-)

Thanks!
Frank



Stanimir
Telerik team
 answered on 22 Sep 2009
14 answers
172 views
HI

I have just noticed a problem with a paged and sorted grid..

In internet explorer,  the tooltip shown is always the content of the first page of results.
After sorting or paging, the tooltips shown are always the first page.

In Firefox or Safari, all works well and the tooltip appropriate to the item is shown.   

It seems like Internet explorer does not action this reset code:
 Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)  
        If e.CommandName = "Sort" OrElse e.CommandName = "Page" Then  
            RadToolTipManager1.TargetControls.Clear()  
        End If  
    End Sub 

What do you suggest? ("Don't use Internet Explorer" is not of course an option!)

BTW I am using Internet Explorer 8, but also tried it in 'compatibility mode' which is like IE7, allegedly.
So maybe there is an IE8 issue here

Thanks

Clive
Svetlina Anati
Telerik team
 answered on 22 Sep 2009
2 answers
64 views
Hi guys,

firstly i would like to congratulate you for the best component library ever! Now I'm creating reservation system and a really appreciate control to pick date and time. I just seen how is set alarm on iPhone, maybe something like that..

I there any control which can do that?

Thanks a lot.
Jan
Top achievements
Rank 1
 answered on 22 Sep 2009
3 answers
166 views
I have 2 rad editors that I'm using to create emails.  The idea is to have one for HTML the other for Plain Text, I've created a custom toolbar button to fetch the data from the HTML editor and insert it into the Plain Text editor.  Is there a way to include the line breaks?

<script type="text/javascript"
//Get Html Content from HTML Editor to The Text Editor -  button on the text editor 
Telerik.Web.UI.Editor.CommandList["GetHtmlContent"] = function(commandName, editor, args) 
   var htmlEditor = $find("<%=HTMLEditor.ClientID%>"); //find the HTML editor 
   
   editor.set_html(htmlEditor.get_text()); //set the new text in Text Editor 
}; 
</script> 

should I be trying to get_html() then converting it to text only somehow?

Thanks!
Rumen
Telerik team
 answered on 22 Sep 2009
1 answer
131 views
Periodically, when an AjaxRequest is made on the page I get the following error:

[Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes .....  Details: Error parsing near 'play:none;"></span>|<html>
    <head>
'.]

I am using version "RadControls_for_ASP[1].NET_AJAX_2009_2_826_dev.msi".

Thanks in advance for any help.

My code snippet.....

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <script type="text/javascript"> 
        var ajaxmanager; 
        function pageLoad() 
        { 
            ajaxmanager = $find('<%= Master.FindControl("RadAjaxManager1").ClientID %>');
        }
       
        function openWin()
        {
            var oWnd = radopen("AccountSearch.aspx", "rwAcctSearch");
            oWnd.setSize (360, 160);
            oWnd.maximize();
            oWnd.restore();               
            oWnd.center();
            oWnd.set_title("Account Number");
            // remove the handler each time or it will get called
            //  an additional time for each successive close event
            oWnd.remove_close(OnClientClose);
            oWnd.add_close(OnClientClose);
        }
       
        function OnClientClose(oWnd,args)
        {
            // get the transferred arguments
            var arg = args.get_argument();
           
            if(arg)
            { 
                // trim value
                var acntNbr = arg.acntNbr.replace(/^\s+|\s+$/g,"");
                ajaxmanager.ajaxRequest(acntNbr);
            }
        }
       
        </script>    
    </telerik:RadCodeBlock>
   
    <input id="btnSendRfn" type="button" style="width: 225px; font-size: x-small;"
         value="Send RFN" onclick="openWin(); return false;" />
       
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
        VisibleOnPageLoad="false" ShowContentDuringLoad="false"
        ReloadOnShow="true" VisibleStatusbar="false">
        <Windows>
            <telerik:RadWindow ID="rwAcctSearch" runat="server" Modal="true"
                 Behaviors="Close">
            </telerik:RadWindow>
        </Windows>   
    </telerik:RadWindowManager>  
   
</asp:Content>

Svetlina Anati
Telerik team
 answered on 22 Sep 2009
2 answers
79 views
I have a master page with a horizontal RADmenu at the top.  In my content page I have a RADWindow as below

<

 

telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista"

 

 

KeepInScreenBounds="True" >

 

 

<Windows>

 

 

<telerik:RadWindow Skin="Vista" ID="NewsDialog" runat="server" Title="News" Height="625px"

 

 

Width="700px" Left="150px" ReloadOnShow="true" Modal="true" KeepInScreenBounds="True" />

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 



When I activate the RADWindow its initially displayed behind my menu, this obsures the top bar in the popup window stopping me from moving it, how can I avoid this ?
Fiko
Telerik team
 answered on 22 Sep 2009
1 answer
122 views
What are the (if any) requirements for being able to have data formatted as a Date in a defined format?

In my database, a date (september 4, 2009) is stored as 20090904

How do I get this formatted as something sensible in my grid? And as something that I can filter on?

Jeppe Jespersen
Denmark

Princy
Top achievements
Rank 2
 answered on 22 Sep 2009
4 answers
204 views
Hi

I'm trying to make a custom composite control which has a RadTreeView in a RadCombo.

I've duplicated the example from the demo site, with the TreeView created dynamically in a template.

I'm almost there except I'm having problem accessing the RadComboBox on the client side.

The problem is on the client side code:
    comboBox = $find('" + ComboTree.ClientId + '");
    comboBox.set_text(node.get_text()); *** Error here ***

The error is: This object does not support this method or property.

If I add a RadComboBox to the page as RadComboBox1 and change the javascript to 
    comboBox = $find('RadComboBox1');
instead of 
    comboBox = $find('" + ComboTree.ClientId + '");
the manually added RadCombo gets the Text from the Tree.

If I add the line alert(node.get_text());  the alertbox shows the corrent item from the tree.

I've tried the following function as well to try to find the problem:

function GetComboId(sender, args) {
    var TreeCombo = sender;
    alert(sender.get_id());
}

And executed this function OnClientDropDownOpening and I get the same error.

My custom control descends from System.Web.Ui.Control and implements INamingContainer.

I do set the Id's of the custom control, RadComboBox and RadTreeView.


Any ideas????

Many thanks

Nick Crisp
Veselin Vasilev
Telerik team
 answered on 22 Sep 2009
3 answers
158 views
Hello,

I defined the custom scheduler provider (inheriting from DbSchedulerProviderBase) in the configuration file.  But the Provider property of the Scheduler control is null.  So do I have to do something to load the provider from the config file, or do I do something else?  I'm not sure if there is a method I have to call first, or if that is supposed to happen automatically.

Thanks.
T. Tsonev
Telerik team
 answered on 22 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?