Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
71 views
Hello,

I'm having some trouble using a RadEditor and a RadTreeview on an ASP UpdatePanel. The updatepanel is on an RadTabstrip wit RadMultipage.

There is a (asp) dropdownbox that determines which controls should be displayed.

When i choose the dropdownitem that show the RadEditor, i get a javascript error 5 times: Error: Object expected

When i choose the dropdownitem that show the RadTreeView, i get a javascript error 4 times: Error: 'Telerik.Web.UI.RadTreeView' is null or not an object

When I work without the updatepanel, there is no problem. But it's much nicer with the updatepanel, so i'd like to keep it ...

Can you help me please?

Thanks !
Rumen
Telerik team
 answered on 04 Sep 2009
1 answer
475 views
Hi all
I have searched quite a bit to find an answer to this problem.
My scenario is WCM and i have followed the RadEditor For Moss included help file telling me to
In the config file:
<property name="AllowScripts">True</property>
In the layoutpage (articleleft.aspx in this scenario) opened in SharePoint Designer - i have changed the <PublishingWebcontrols:RichHTMLField ... with the <radE:RadHtmlfield.... and in that very control set the  AllowSpecialTags="True"

Now while the editor leaves the <script language="javascript">function xx(){alert("Hello world");}</script> uppon publishing it still strips my call for the xx function wich i try to call from a button <button onClick="xx">Click Me</button> - the "onClick=xx" has simply been stripped uppon publishing the pageinstance. This is also true for a <a href="javascript:xx()"... as well.

What do i do wrong? I think i have set all the props right according to the instructions provided by telerik?

I might ad that the problem dosnt occur in the webpart wich seems to accept any wich javascript code and functioncalls i want to use. BUT... i need to insert script in the WCM so...? please help.
Per Hoyer Stensnaes
Top achievements
Rank 1
 answered on 04 Sep 2009
1 answer
106 views
Hi,

I just read on this link http://www.telerik.com/help/aspnet-ajax/tooltip_tooltipmanageroverview.html  that by just putting RadToolTipManager on the page, all the existing controls having tooltips will be converted to RadToolTip. 
Do we have to also add all of our controls to the TargetControls collection of tooltipManager or not ? as we want to apply RadToolTip on all of our controls. 
But this is what not happening right now. 
Any help....

Regards,
Haris
Georgi Tunev
Telerik team
 answered on 04 Sep 2009
13 answers
767 views
RE: 102 Telerik RadControls
Lab: External Streamer Pages


I followed the steps in the tutorial for moving the RadCombox into a user control but cannot get it to function. It works fine in the previous lab when the RadComboBox is on the aspx page directly.

A break point show me that the function RadComboBox1_ItemsRequested
in CountryStreamer.aspx never gets hit .

Am I missing something ?




public

partial class CountryStreamer : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

}

protected void RadComboBox1_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)

{

DataTable dt = FetchMatchingCountries(e.Text);

RadComboBox combo = (RadComboBox)o;

combo.Items.Clear();

foreach (DataRow row in dt.Rows)

{

RadComboBoxItem item = new RadComboBoxItem(

row[

"Country"].ToString().ToLower());

item.Value = row[

"Code"].ToString();

combo.Items.Add(item);

}

}

private DataTable FetchMatchingCountries(string partialName)

{

string mdbPath = Server.MapPath("~/App_Data/Combobox.mdb");

OleDbConnection dbCon = new OleDbConnection(

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + mdbPath);

dbCon.Open();

string sql = "SELECT * from CountryCodes WHERE Country LIKE '" +

partialName.Replace(

"'", "''") + "%'";

OleDbDataAdapter adapter = new OleDbDataAdapter(sql, dbCon);

DataTable dt = new DataTable();

adapter.Fill(dt);

dbCon.Close();

return dt;

}

}

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

<%

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

<%

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

<

head runat="server"><title>Untitled Page</title></head>

<

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

Start typing a Country Name:

<telerik:RadComboBox ID="RadComboBox1" runat="server"

AllowCustomText="True" EnableLoadOnDemand="True"

MarkFirstMatch="True" HighlightTemplatedItems="True"

ItemRequestTimeout="200" Width="150px"

OnClientItemsRequesting="RadComboBox1_ItemsRequested">

</telerik:RadComboBox></div></form></body></html>

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

public partial class CountryPicker : System.Web.UI.UserControl

{

protected void Page_Load(object sender, EventArgs e)

{

}

}

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

<%

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

<%

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

<telerik:RadComboBox ID="RadComboBox1" runat="server"

AllowCustomText="True" EnableLoadOnDemand="True" MarkFirstMatch="True"

Width="150px" ItemRequestTimeout="200" HighlightTemplatedItems="True"

ExternalCallBackPage="~/CountryStreamer.aspx">

</

telerik:RadComboBox>

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

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

<%

@ Register TagPrefix="uc1" TagName="CountryPicker" Src="~/CountryPicker.ascx" %>

<

head runat="server"><title>Untitled Page</title></head>

<

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

<asp:ScriptManager ID="ScriptManager1" runat="server">

</asp:ScriptManager>

<div>
<uc1:CountryPicker ID="cpPicker" runat="server" />
</
div></form></body></html>

 

Atanas Korchev
Telerik team
 answered on 04 Sep 2009
4 answers
94 views
Just recently after installing the latest ASP AJAX controls, Visual Studio has started to rewrite some of the aspx code depending on which Telerik control I happen to have selected in design view.

For example,  'telerik:AjaxSetting' has been rewritten as 'telerik.web.ui.ajaxsetting'. Once this has happended, the page won't build and the design view object won't render.

Can you suggest why this has started to happen as it take some time to make all the corrections, particularly for a complex RadGrid.

Regards,
Jonathan
Jonathan
Top achievements
Rank 1
 answered on 04 Sep 2009
1 answer
114 views
Hello,
When i open a radwindow from the callback function of another radwindow, the window opens but disappears within 1-2 seconds.
Fiko
Telerik team
 answered on 04 Sep 2009
1 answer
74 views
Hello, me again,

first at all, thanks for solving all other problems.

First problem:
As you can see in the image provided , if the label has 2 rows, than all the space is filled with the backcolor. If theres just one row, the backcolor of the radrotatoritem does not paint the bottom of the rotator. The image is located at
http://a.imagehost.org/view/0046/RotatorProblem
**************************************************************
UPDATE!
Solved problem one by setting the height for the item in the css.
**************************************************************

Second Problem:
At the moment I have 8 Items in the rotator. I show 3 at one time. When rotating, the text just disappears. After a postback the text is there again.
I change the cursor on an item. I found out, that this space, where the text used to be, does not change the cursor. That means it seems that this space does not belong to the rotator item anymore. It does not happen with IE6 anf Firefox 3.5, but it happes in IE7.


Thank you



Fiko
Telerik team
 answered on 04 Sep 2009
4 answers
279 views
Hi,
    Im using stored procedure in inserting new record in my radgrid, is there a way to prompt the user if he enters duplicate record? im thinking there's a label inside the radgrid, when the user try to enter duplicate record it will change the status to 'Record is already existing'. Thanks in advance.

Jeru
Charlie Crawford
Top achievements
Rank 1
 answered on 04 Sep 2009
1 answer
189 views

Hello,

I want to implement the following scenario:

I have a doc file on the server and i want to upload it inside the editor. When the user-client opens the web page with the radeditor control from his local pc, he must be able to see the document that is saved on the filesystem of the server. Is that possible?

Also after the doc file is uploaded inside the editor, the client(user( wil make some changes inside the doc file) and then he will have to save the doc file back to the server. Is that possible with RadEditor?

Regards,
Eleni

Rumen
Telerik team
 answered on 04 Sep 2009
1 answer
220 views

I'm attempting to upgrade to the newest version of the RADEditor and load external resources via an external CDN in an effort to maximize load time for this control. 

However, I'm having trouble getting the control to render properly when I've disabled the use of embedded resources and instead referencing the javascript and image files on an external CDN.   

Here's what I've done:

Issue #1:

- I first attempted to reference just the js files externally by adding the following to our mark-up.

 <asp:ScriptManager ID="ScriptManager1" runat="server" >
      <Scripts>
        <asp:ScriptReference Path="http://img.icbdr.com/images/RadEditor/Scripts/Common/Core.js" />
        <asp:ScriptReference Path="http://img.icbdr.com/images/RadEditor/Scripts/Common/PopUpScripts.js" />          
        <asp:ScriptReference Path="http://img.icbdr.com/images/RadEditor/Scripts/Common/RadEditor.js" />
        <asp:ScriptReference Path="http://img.icbdr.com/images/RadEditor/Scripts/Common/DialogOpener.js" />
        <asp:ScriptReference Path="http://img.icbdr.com/images/RadEditor/Scripts/Common/Modules.js" />         
        <asp:ScriptReference Path="http://img.icbdr.com/images/RadEditor/Scripts/Common/SpellCheckService.js" />
        <asp:ScriptReference Path="http://img.icbdr.com/images/RadEditor/Scripts/Common/AjaxSpellCheck.js" />
        <asp:ScriptReference Path="http://img.icbdr.com/images/RadEditor/Scripts/Common/RadWindow.js" />
      </Scripts>
</asp:ScriptManager>

<MX:MXRadEditorV2 ID="mxRadEditorV2"
                  EnableEmbeddedScripts="false"
                  StripFormattingOnPaste="None"
                  NewLineBr="True"
                  StripAbsoluteImagesPaths="false"
                  ShowPreviewMode="True"
                  runat="server" >
</MX:MXRadEditorV2>

- See "ScreenShot: 2" (in attached Word document).   As you can see when I attempted to just reference the javascript files externally, the control renders fine, but I'm unable to click in the text area.  It behaves like it's disabled.  

Issue #2:

- I next tried to reference the images externally.

- I copied all the "Outlook" themed images to our Akamai server.
- I copied the following css files into our solution:

  •   Window.css
  •   Editor.css
  •   Editor.Outlook.css
  •   Window.Outlook.css
  •   EditorContentArea.css


- I'm now loading these styles in the code-behind of my generic test page that i'm attempting to render this control on.  See "Screen Shot: 1" in the attached Word document that will show that all the style sheets are loaded.

- I updated both Editor.Outlook.css and Window.Outlook.css to reference all the .gif files via our Akamai servers.  I've attached the two css files that I updated so you can confirm that I updated the paths correctly.

- I also added the following properties (bolded) in an attempt to fully disable the use of embedded resources.

<MX:MXRadEditorV2 ID="mxRadEditorV2"
                  EnableEmbeddedScripts="false"
                  EnableAjaxSkinRendering="false"
                  EnableEmbeddedBaseStylesheet="false"
                  EnableEmbeddedSkins ="false"
                  Skin = "Outlook"

                  StripFormattingOnPaste="None"
                  NewLineBr="True"
                  StripAbsoluteImagesPaths="false"
                  ShowPreviewMode="True"
                  runat="server" >
</MX:MXRadEditorV2>

- This resulted in "ScreenShot: 3" (in attached Word document). 

- I then attempted to set EnableEmbeddedBaseStylesheet = "true".

- This resulted in "ScreenShot: 4" (in attached Word document).   Notice that a couple of images/icons are showing up at the bottom of the page, but the rest of the page is not rendering any images.

I've dug into the online documentation and perhaps I've just overlooked something, but I'm completely stuck.  Any assistance you can provide would be appreciated.

Thank you,

Brian Kamer
CareerBuilder.com




Lini
Telerik team
 answered on 04 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?