Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
1.5K+ views
The application is using a RAD Editor and trying to save the HTML code for UP arrow - ↑ . The application is using recommended settings for supporting appearance of odd characters as mentioned http://www.telerik.com/help/aspnet/editor/appearanceofoddcharactersaftersavingradeditorscontentindatabase.html.

However, when I save the text from the RAD Editor to the database (the db type is ntext) , it does not save the HTML code i.e. ↑
and when displayed back in an HTML page it displays as question mark "?"

How do i get the database to save the text as ↑ from the editor?
Rumen
Telerik team
 answered on 10 Mar 2010
3 answers
137 views
Hi.

I have a RadEditor to which I have added a custom module called a PropertyBar by using code like the following:
                showDetail: function() {  
                        var selectedElement = this.get_editor().getSelectedElement();  
 
                        var span = document.createElement("SPAN");  
                        var element = this.get_element();  
 
                        if (selectedElement.nodeName == "comment") {  
                            if (selectedElement.attributes["commentValue"] != undefined)  
                                span.innerHTML = "Comments Made: " + selectedElement.attributes["commentValue"].value;  
 
                            element.appendChild(span);  
                        }  
 
                        element.style.border = "1px solid gray";  
                        element.style.marginTop = "3px";                    }  
                };  
 
                MyModule.registerClass('MyModule', Telerik.Web.UI.Editor.Modules.ModuleBase); 

In Firefox, the property bar renders properly, ie, it displays the property bar inside the editor, so the text that is to be displayed remaines contained in a set area.  In other words, if I have set a hieight of 500 for my editor, and the property bar needed 200px to display what it needed to display, the height of the editor would remain at 500, but the text portion would change to 300, and the property bar would get the remaining 200px

However, in IE, the property bar renders outside the editor, so if there is anything below the editor (which there is), the text just renders on top of the things that are displayed below the editor.  Using the same example, if the editor was 500, the property bar needed 200px to display the text that it needed to display, the editable text would get 500px, the property bar would start at 500 and render to 700, and the text that it needed to display would just get written over the objects that were below the editor.

I'm pretty sure this is the classic IE vs Firefox discussion about how divs are rendered that is all over the HTML forums, but I'm not sure, and am further unsure of how to resolve the problem so that both browsers will render the proeperty bar properly.

Any ideas?
Rumen
Telerik team
 answered on 10 Mar 2010
5 answers
182 views
I'm having an issue with the RadEditor for MOSS. I've confirmed that one of the Telerik control  emitted Javascripts seems to be adding inline CSS style to the top level div of the editor, namely min-height, min-width. This is causing layout issues on my page. My question is why is it doing this, and how do I prevent this from happening?

<div style="height: 300px; width: 100%; min-height: 300px; min-width: 1133px;" class="RadEditor Default reWrapper ms-input" id="ctl00_PlaceHolderMain_EditModePanel2_EditLessonPlan_GoalField_ctl00">

Thanks,
-James





Stanimir
Telerik team
 answered on 10 Mar 2010
1 answer
95 views
Hi,

I'm using Telerik version 2008.2.1001.35.

 <telerik:RadMaskedTextBox ID="masked" runat="server" Mask="##### #####"  DisplayMask="##### #####"
      DisplayPromptChar="" PromptChar="" SelectionOnFocus="None" ResetCaretOnFocus="false" HideOnBlur="true">
     </telerik:RadMaskedTextBox>

 This is my code. After entering numbers, if i select any number in the middle and press delete, then it automatically changes the cursor position to the beginning. (IE 6,7,8)  Am i doing something wrong? Please reply
Nikolay Rusev
Telerik team
 answered on 10 Mar 2010
3 answers
126 views

Hi,

    I'm using RadGrid and getting the error below.  I searched through previous similar posts, but I don't believe the problem is with the Telerik,Web.UI assembly version, because I've got the RadMenu control working perfectly in the same app using the same Web.config file.  You can see the error by going to http://www.murrayhilltech.com/article_list2.aspx .  You can verify that the RadMenu is working on the same site by going to http://www.murrayhilltech.com .  Here's the error:

Could not load file or assembly 'System, Version=1.0.7.30072, Culture=neutral, PublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.

Thanks.
Dave

Tsvetoslav
Telerik team
 answered on 10 Mar 2010
4 answers
191 views
Hi, I'm trying to have my radeditor in french but it doesn't work, all is in english.
Here is what I've done :

<telerik:RadEditor ID="txtContenu" Runat="server" Height="600px" Skin="Web20" Language="fr-FR"
    <Tools> 
        <telerik:EditorToolGroup> 
            <telerik:EditorTool Name="Print" /> 
            <telerik:EditorTool Name="FindAndReplace" /> 
            <telerik:EditorSeparator /> 
            <telerik:EditorTool Name="Undo" /> 
            <telerik:EditorTool Name="Redo" /> 
            <telerik:EditorSeparator /> 
            <telerik:EditorTool Name="Cut" /> 
            <telerik:EditorTool Name="Copy" /> 
            <telerik:EditorTool Name="Paste" /> 
            <telerik:EditorTool Name="PasteFromWord" /> 
            <telerik:EditorSeparator /> 
            <telerik:EditorTool Name="JustifyLeft" /> 
            <telerik:EditorTool Name="JustifyCenter" /> 
            <telerik:EditorTool Name="JustifyRight" /> 
            <telerik:EditorTool Name="JustifyFull" /> 
            <telerik:EditorSeparator /> 
            <telerik:EditorTool Name="Bold" /> 
            <telerik:EditorTool Name="Italic" /> 
            <telerik:EditorTool Name="Underline" /> 
            <telerik:EditorTool Name="Forecolor" /> 
            <telerik:EditorTool Name="BackColor" /> 
            <telerik:EditorTool Name="LinkManager" /> 
            <telerik:EditorTool Name="Unlink" /> 
            <telerik:EditorSeparator /> 
            <telerik:EditorTool Name="ImageManager" /> 
        </telerik:EditorToolGroup> 
    </Tools> 
</telerik:RadEditor>

I don't know where I am wrong. Could someone tells me?

Thank you,

Julien
Rumen
Telerik team
 answered on 10 Mar 2010
2 answers
147 views
I have the  Person class with the following fields which reflects the table structure.
field               datatype
Id                   long
Name             string
Title               string
Supervisor     long


I want to build a self referencing grid. I keep getting the following error

System.Data.SyntaxErrorException: Syntax error in Lookup expression: Expecting keyword 'Supervisor' followed by a single column argument with possible relation qualifier: Supervisor[(<relation_name>)].<column_name>.


I have tried the various combinations of filterexpression in the Page_load event but none seem to work.

 RadGrid1.MasterTableView.FilterExpression = "Supervisor = 0";
 RadGrid1.MasterTableView.FilterExpression = "it.Supervisor = 0";

I am populating ICollection<Person> and setting it to the RadGrid1 datasource property.

I am not sure what is causing this error. I have looked through the forums but havent found any help in this matter.

Thanks

Truong Pham
Top achievements
Rank 1
 answered on 10 Mar 2010
2 answers
150 views
I need to apply filtering for a column in my RadGrid.  The column is an int column, and the user must be able to filter multiple selections.  I want to do something like this:  select * from <table> where num in (X,Y,Z).

How can I get this filtering functionality?


EDIT:
I followed an example on http://www.telerik.com/help/aspnet-ajax/grdcustomoptionforfiltering.html to add custom filtering, and this is what I came up with.

 
    protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
    { 
        if (e.CommandName == RadGrid.FilterCommandName) 
        { 
            Pair filterPair = (Pair)e.CommandArgument; 
 
            switch (filterPair.Second.ToString()) 
            {                
                case "vendNum"
                    TextBox tbPattern = (e.Item as GridFilteringItem)["vendNum"].Controls[0] as TextBox; 
                    if (tbPattern.Text.Contains(",")) 
                    { 
                        string[] values = tbPattern.Text.Split(','); 
                        if (values.Length >= 2) 
                        { 
                            e.Canceled = true
                            StringBuilder newFilter = new StringBuilder(); 
                            for (int i = 0; i < values.Length; i++) 
                            { 
                                if (i == values.Length - 1) 
                                    newFilter.Append("([vendNum]='" + values[i] + "')" ); 
                                else 
                                    newFilter.Append("([vendNum]='" + values[i] + "') OR "); 
                            } 
                            if (RadGrid1.MasterTableView.FilterExpression == ""
                                RadGrid1.MasterTableView.FilterExpression = newFilter.ToString(); 
                            else 
                                RadGrid1.MasterTableView.FilterExpression = "((" + RadGrid1.MasterTableView.FilterExpression + ") AND (" + newFilter.ToString() + "))"
                            RadGrid1.Rebind(); 
                        } 
                    } 
                    break
                default
                    break
            } 
        } 
    } 

This is giving me an "Expression Expected" error when I try to filter that column.  Anyone have an idea as to why that is?

Thanks,
Aaron
Aaron Gravois
Top achievements
Rank 1
 answered on 10 Mar 2010
1 answer
38 views
Hello All,

I have a fix situation here, i am loading one aspx page into another take example i am loading default2.apsx in default1.aspx using basic ajax xmlhttp request . thats working, but when i am using my rad controls in default2.aspx  , they do not work in default1.aspx what should be done? new to telerik totally so need a claer concept in solving this .


Thank you All
Varsha
Pero
Telerik team
 answered on 10 Mar 2010
3 answers
154 views
Hi

How to do this with Rad Text Box:

1- Prevent Data duplication when insert a new record (something like user name) , so say if the user entered a user name which is already exist then he ll get an error message (i know i can do that back in the database by making the column unique but then on the client side the sql error message will appear which will look ugly.

2- is there any option to make all the inputs UPPER CASE regardless the user inputs.

Thanks
Dimo
Telerik team
 answered on 10 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?