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

If I add a picture to my RadEditor in the design view and update the form the editor seems to strip out the HTML.  If I add a picture in design view and go to HTML view, copy and past the HTML into design view it works without stripping it out.  I searched the forum but could not find anyone else having this issue.  I am using 2009 Q3.  Code pasted below.  Thanks to anyone who can help!

 

Html trying to insert:

 test<img alt="" src="/databend/Files/image/eatonftw2.jpg" />test 4

 

 

Code:

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

 

<telerik:RadEditor ID="RadEditor1" runat="server" ImageManager-UploadPaths="~/isite_files/image" SkinID="DefaultSetOfTools" DocumentManager-MaxUploadFileSize="4000000" FlashManager-MaxUploadFileSize="10000000" ImageManager-MaxUploadFileSize="4000000">

          <MediaManager ViewPaths="~/Files/media" UploadPaths="~/Files/media" DeletePaths="~/Files/media" />

          <ImageManager ViewPaths="~/Files/image" UploadPaths="~/Files/image" DeletePaths="~/Files/image" />

          <FlashManager ViewPaths="~/Files/video" UploadPaths="~/Files/video" DeletePaths="~/Files/video" />

          <DocumentManager ViewPaths="~/Files/document" UploadPaths="~/Files/document" DeletePaths="~/Files/document" />

          <Tools>

                <telerik:EditorToolGroup Tag="FileManagers">

                    <telerik:EditorTool Name="ImageManager"/>

                    <telerik:EditorTool Name="FlashManager" />

                    <telerik:EditorTool Name="MediaManager" />

                    <telerik:EditorTool Name="DocumentManager" />

                    <telerik:EditorTool Name="AjaxSpellCheck" />

                    <telerik:EditorTool Name="InsertTime" />

                    <telerik:EditorTool Name="Print" />

                    <telerik:EditorTool Name="Redo" />

                    <telerik:EditorTool Name="Undo" />

                    <telerik:EditorTool Name="LinkManager" />

                    <telerik:EditorTool Name="Unlink" />

                    <telerik:EditorTool Name="TableWizard" />

                </telerik:EditorToolGroup>

                <telerik:EditorToolGroup>

                    <telerik:EditorTool Name="Bold" />

                    <telerik:EditorTool Name="Italic" />

                    <telerik:EditorTool Name="Underline" />

                    <telerik:EditorSeparator />

                    <telerik:EditorTool Name="ForeColor" />

                    <telerik:EditorTool Name="BackColor" />

                    <telerik:EditorSeparator />

                    <telerik:EditorTool Name="FontName" />

                    <telerik:EditorTool Name="RealFontSize" />

                </telerik:EditorToolGroup>

            </Tools>

 

         

          </telerik:RadEditor>

 

(No code in codebehind)

Rumen
Telerik team
 answered on 21 Dec 2009
5 answers
84 views
Hi,

I have give select option to my Radgrid. I have select button type as image, In firefox its show corectly Select. But IE its show Image not found Icon [X] with select , Why that?

lakmal
Princy
Top achievements
Rank 2
 answered on 21 Dec 2009
1 answer
82 views
I have couple of tabs in a window, the text is long and the window size is small this causes the tabs to break.
I want to have the data to come one below the other causing the tabs to be of specific length horizontally but I can have them increace vertically.

I had made the tabstrip property isBreak="False" but a problem occured due to the size of the window
Is there any solution to this?

Thanks
Sneha
Shinu
Top achievements
Rank 2
 answered on 21 Dec 2009
5 answers
171 views
Hi,

In FireFox (3.5.6) and others the href property of an A becomes a relative link.

So if my CMS page is content/edit.aspx, all links in the editor become /content/<original link here>

This is not happening in IE8.
I tried to solve with Telerik.Web.UI.Editor.StripPathsFilter but didn't work.

BR,
Marc
Fit2Page
Top achievements
Rank 3
Bronze
Bronze
Iron
 answered on 21 Dec 2009
2 answers
340 views
This problem is difficult to describe, so bear with me.

I have a user control that I built, that contains a RadAjaxPanel along with a RadAjaxLoadingPanel and some other controls.  I then have an aspx page that contains another RadAjaxPanel and RadAjaxLoadingPanel.  I have wrote some server side code that will add the user control to a panel on the page dynamically when a button within the aspx page's RadAjaxPanel is clicked.  The panel that the control gets added to has been delegated as an UpdateControl in the RadAjaxManager, so as to avoid a complete postback.  I have made sure to write the server side code, so that the user control's ID and all of its containing ctrl's ID's are unique with an incremented number on the end.  This however is not preventing a javascript runtime errors from popping up when I test this in debug.  The errors are as follows:  

"Sys.InvalidOperationException: A control is already associated with the element."
"Sys.InvalidOperationException: Two components with the same id 'dynamicRADAJAXPanelID' can't be added to the application."

I have checked all the control ID's and none are the same.  The web page function properly, and does add the controls dynamically, but still throws the exception.  If I ignore the exceptions, the page renders and functions properly.

If anyone knows of any issues with adding RadControls dynamically, or with adding controls dynamically in an AJAX postback rather than a full postback, please help me out.  If you need to see the code, let me know. 

Thanks.
Richard Nash
Top achievements
Rank 2
 answered on 21 Dec 2009
1 answer
147 views
Hi,

We've just migrated from ComponentArt Menu to Telerik Menu because of client requirenent for two features: Keyboard Access and Multiple browsers support.
We've a fixed horizontal Menu with 6 static MenuItems, out of which, only two have sub-menus. (Menu_Usage.png)
The requirement is that these links should be accessible via Keyboard using Shortcut Keys. This works prefectly with IE - pressing [Alt + <Shortcut Key>] sets focus on the right Menu Item and we can traverse through other Menu Items using 'Tab'-key.
But with Firefox, pressing [Shift + Alt + <Shortcut Key>] doesn't set the focus on the first Menu Item - it makes a click on the first Menu Item! Result is that traversal is not possible at all, as using shortcut keys immediately opens the page by clicking the hyperlink.

I've attached two snapshots from the Telerik Demo opened in IE and FF, with slight code modification to enable Shortcut Keys on one of the Demos. IE - all is fine, but using ShortCut Keys in FF activates (and clicks!) the MenuItem, and navigation via keyboard doesn't work anymore.
FYI, this is the default behavior in Firefox for Hyperlinks
(refer to:   http://kb.mozillazine.org/Accessibility.accesskeycausesactivation)

But I need a solution/workaround. Any ideas?
Thanks in advance.

Best Regards,
Veenu Munjal 
Yana
Telerik team
 answered on 21 Dec 2009
1 answer
201 views
Hi!

I've simple question: Is it possible to create or fill nested table on client side? Even if columns are specified or not.

I need to create nested table view after row click and expand it. All things should be done on client side, RadGrid control will get data from web service.

Any help is appreciated.
Princy
Top achievements
Rank 2
 answered on 21 Dec 2009
1 answer
71 views
Find and replace is working properly in Rad Editor version 2009.2.701.35. Please suggest.

Thanks
Praveen Tomar
Dobromir
Telerik team
 answered on 21 Dec 2009
2 answers
145 views
Greetings,

    I have a grid in which I am doing some RequiredField validations. I also have a single CustomValidator that tests if the specific value already exists in my DB. I only want the custom validation to happen when I am inserting new records. How do I check in my ServerValidation method, which state the grid is in. i am still learning this stuff so please be patient with me.

Here is the the grid column that I am trying to validate.
<telerik:GridTemplateColumn DataField="EID" HeaderText="EID" UniqueName="EID"> 
    <ItemTemplate> 
        <asp:Label runat="server" ID="lblEID" Text='<%# Eval("EID", "{0}") %>'></asp:Label> 
    </ItemTemplate> 
    <EditItemTemplate> 
        <telerik:RadTextBox runat="server" ID="tbEID" Skin="Office2007" Width="158" 
            Text='<%# DataBinder.Eval(Container, "DataItem.EID") %>'> 
        </telerik:RadTextBox> 
        <span style="color: Red">*</span> 
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="tbEID" 
            ErrorMessage="EID is required" runat="server"></asp:RequiredFieldValidator> 
        <asp:CustomValidator ID="EIDValidator" ControlToValidate="tbEID" OnServerValidate="CheckEID" 
            ErrorMessage="This user already exists" runat="server"></asp:CustomValidator> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 

and the Validation in the code-behind
protected void CheckEID(object source, ServerValidateEventArgs args) 
{ 
    DataSet ds = new DataSet(); 
    SqlParameter[] param = new SqlParameter[1]; 
 
    param[0] = ExpertProvider.SqlDB.MakeParameter("@EID", args.Value); 
    ExpertProvider.SqlDB.RunProcedure("Database.Expert.ConnectionString", 
            "HSOExpertSystem_Admin_Users_Get_User", param, ref ds); 
 
    if (ds.Tables[0].Rows.Count > 0) 
    { 
        args.IsValid = false; 
    } 
    else 
    { 
        args.IsValid = true; 
    } 
} 

I'd be grateful for any assistance. Thanks


Thomas Frohe
Top achievements
Rank 1
 answered on 21 Dec 2009
1 answer
96 views
Hi,

I want to add spellchecker in my rad editor.
I have used
Tools file declaration in XMl file as mentioned below.
<tool name="AjaxSpellCheck" shortcut="F7"/>
On using the tool the Spell check  icon gets displayed but the icon is not as the one what we see on using the old Version(a little Blurred).

Please help me to solve this issue.

Note:
When i used the Old version the Icon for the spellchecker in my rad editor was displaying properly( i.e as expected).
Whereas when  used the updated Version i am getting this issue.
Martin
Telerik team
 answered on 21 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?