Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
257 views
Hello,
We are using Telerik radEditor in IE( version 8). After setting a template to the editor, when we press "Save" button in application, extra blank lines get appended to the editor content. We tried removing them manually & save in the database. But the problem still persists.  The problem continues even when we switch from design mode to HTML mode of radeditor.This problem appears when we add template to the editor. However the problem not appears for every template but for perticular template.

The steps when we encountered the problem -
1) inserted a standard template to radeditor in design mode and removed the spaces manually.
2) then switched to html mode,we found extra <br> added at the end. We again switched to design mode, we found extra blank lines added.
3) We repeated above steps 3/4 times,but faced same problem.

Please Provide us the solution for the same.       

Regards,
Rahul K
Rumen
Telerik team
 answered on 21 Feb 2011
1 answer
192 views
Hi, I am new to using Telerik controls, I thought that using the controls would shorten my work, but so far doing one simple task is actually making it longer for me to complete what I am working on.  I have tried every possible way to get this to work, and searched just about every thread and have not found an answer that works. I am trying to get the new value on a field that has been updated by the user.  Each method I have tried only returns the old value.  I have tried placing the values in a Hashtable using the ExtractValues method, I have tried getting the value using the GridTextColumnEditor, etc.  Every example on here I have tried.  Please help.  I am using an instance of a LINQ datacontext, or more particular. I use a method that submits a query using an instance of a LINQ datacontext, the method returns the data as a Generic List, and I use this to set the datasource for the Grid. As shown in the code-behind below.  The data shows, sorts, pages, filters perfectly, but when I try to edit or update I start to get issues.  In my code behind, you will see that I tried both recommend ways and neither has worked for me.

Thanks in Advance

Markup Code:

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" PageSize="10" AllowSorting="true" ShowGroupPanel="true" AutoGenerateColumns="False"
    AllowMultiRowSelection="true" CellPadding="0" AllowMultiRowEdit="true" OnNeedDataSource="RadGrid1_NeedDataSource" OnUpdateCommand="RadGrid1_UpdateCommand" AllowAutomaticUpdates="true">
    <MasterTableView DataKeyNames="Spot_IDX" GroupLoadMode="Client" EditMode="InPlace" CommandItemDisplay="Top" AllowAutomaticUpdates="true">
     <CommandItemTemplate>
        <telerik:RadToolbar ID="RadToolBar1" OnButtonClick="RadToolBar1_ButtonClick" runat="server">
            <Items>
                <telerik:RadToolBarButton Text="Edit" CommandName="EditAll" ImageUrl="~/App_Themes/Default/Images/Telerik/Edit.gif" Visible='<%# RadGrid1.EditIndexes.Count == 0 %>' runat="server"></telerik:RadToolBarButton>
                <telerik:RadToolBarButton Text="Update" CommandName="UpdateEdited" ImageUrl="~/App_Themes/Default/Images/Telerik/Update.gif" Visible='<%# RadGrid1.EditIndexes.Count > 0 %>'></telerik:RadToolBarButton>
                <telerik:RadToolBarButton Text="Cancel Editing" CommandName="CancelAll" ImageUrl="~/App_Themes/Default/Images/Telerik/Cancel.gif" Visible='<%# RadGrid1.EditIndexes.Count > 0%>'></telerik:RadToolBarButton>
                <telerik:RadToolBarButton Text="Refresh Spot List" CommandName="RebindGrid" ImageUrl="~/App_Themes/Default/Images/Telerik/Refresh.gif"></telerik:RadToolBarButton>
                 
  
            </Items>
              
  
                 
        </telerik:RadToolbar>
          
     </CommandItemTemplate>
    <Columns>
         <telerik:GridClientSelectColumn UniqueName="TagCheckboxSelectColumn" HeaderText="Tag" HeaderStyle-Width="45"/>
  
<telerik:GridBoundColumn UniqueName="House ID"
                        SortExpression="HouseID" HeaderText="House ID" DataField="HouseID" HeaderStyle-Width="190" ColumnEditorID="1">
         </telerik:GridBoundColumn>
  
 </Columns>
      
    </MasterTableView>
    <ClientSettings AllowDragToGroup="true" AllowGroupExpandCollapse="true" DataBinding-EnableCaching="true" AllowColumnsReorder="true" >
    <Selecting AllowRowSelect="true"/>
    <Scrolling UseStaticHeaders="True" AllowScroll="true"/>
    <Resizing AllowResizeToFit="true"  AllowColumnResize="true"/>       
    <ClientEvents OnRowDblClick="RowDblClick" />
  
    </ClientSettings>
      
    </telerik:RadGrid>

Code-Behind (C#)
Public partial class Inbox : System.Web.UI.Page 
SpotDataAccess spotAccess = new SpotDataAccess();
        protected void Page_Load(object sender, EventArgs e)
        {
              RadGrid1.DataSource = spotAccess.ReturnAllSpots();
             RadGrid1.DataBind();
        }
  
protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e)
        {
                      Hashtable newValues = new Hashtable();
               ((GridEditableItem)e.Item).ExtractValues(newValues); 
                          
                   GridEditableItem editedItem = e.Item as GridEditableItem;
                GridEditManager editMan = editedItem.EditManager;
  
                foreach (GridColumn column in e.Item.OwnerTableView.RenderColumns)
                {
                    if (column is IGridEditableColumn)
                    {
                        IGridEditableColumn editableCol = (column as IGridEditableColumn);
                        if (editableCol.IsEditable)
                        {
                            IGridColumnEditor editor = editMan.GetColumnEditor(editableCol);
  
                            string editorType = editor.ToString();
                            string editorText = "unknown";
                            object editorValue = null;
  
                            if (editor is GridTextColumnEditor)
                            {
                                editorText = (editor as GridTextColumnEditor).Text;
                                editorValue = (editor as GridTextColumnEditor).Text;
                            }
                        }
                    }
                }
         }
  
         protected void RadGrid1_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            this.RadGrid1.DataSource = spotAccess.ReturnAllSpots();
        }
Greg
Top achievements
Rank 1
 answered on 21 Feb 2011
1 answer
85 views
I added a following html in my rad editor in firefox :
<span class="headerlink"><font size="2" face="arial, sans-serif"  [3_fontcolor]>Abhi Bansal</font></span>

after change the edition mode  it converts to

<span class="headerlink"><font [3_fontcolor]="" face="arial, sans-serif" size="2">Abhi</font></span>

Cute Editor is the tool we are weaning people off of, but in Cute-Editor-using-Firefox it leaves all the HTML alone….keeps it as-is. That's what mode we are looking for…is there a mode that will NOT touch any of the HTML that is loaded….or is there only a specific set of environments where this will work; such as IE Windows, Safari Mac, etc. etc.). Lastly, do they know of a way to turn off the Firefox Rich Text Editing Engine…or is it required for RadEditor to work in Firefox?
Rumen
Telerik team
 answered on 21 Feb 2011
3 answers
107 views
I added a following html in my rad editor in firefox :
<span class="headerlink"><font size="2" face="arial, sans-serif"  [3_fontcolor]>Abhi Bansal</font></span>

after change the edition mode  it converts to

<span class="headerlink"><font [3_fontcolor]="" face="arial, sans-serif" size="2">Anhi</font></span>

This happens only in firefox.

Thanks
Abhinandan Bansal
Rumen
Telerik team
 answered on 21 Feb 2011
1 answer
194 views
We are using the RadEditor on a control.  If I change the font size to anything over 4 in the editor and begin typing, the letters are cut off at the top and bottom.  Is there a setting I need to set to fix this?  Here is the declaration for the RadEditor:

<telerik:RadEditor ID="tbNote" runat="server" Width="502px" 
    TextMode="MultiLine" Wrap="True" EditModes="Design" Height="250px" 
    Style="border: 1px solid navy;">
    <Tools>
        <telerik:EditorToolGroup Tag="BasicFunctions">
            <telerik:EditorTool Name="Cut" />
            <telerik:EditorTool Name="Copy" />
            <telerik:EditorTool Name="Paste" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="Bold" />
            <telerik:EditorTool Name="Italic" />
            <telerik:EditorTool Name="Underline" />
            <telerik:EditorTool Name="StrikeThrough" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="FindAndReplace" />
            <telerik:EditorTool Name="Print" />                        
            <telerik:EditorTool Name="AjaxSpellCheck" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="Undo" />
            <telerik:EditorTool Name="Redo" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="Outdent" />
            <telerik:EditorTool Name="Indent" />
            <telerik:EditorTool Name="InsertOrderedList" />
            <telerik:EditorTool Name="InsertUnorderedList" />
        </telerik:EditorToolGroup>
        <telerik:EditorToolGroup Tag="FontTools">
            <telerik:EditorTool Name="FontName" />
            <telerik:EditorTool Name="FontSize" />
            <telerik:EditorSeparator />
            <telerik:EditorTool Name="JustifyLeft" />
            <telerik:EditorTool Name="JustifyCenter" />
            <telerik:EditorTool Name="JustifyRight" />
            <telerik:EditorTool Name="JustifyFull" />
        </telerik:EditorToolGroup>
    </Tools>
    <Content>
    </Content>
</telerik:RadEditor>


Thank you,
Lindsay
Rumen
Telerik team
 answered on 21 Feb 2011
2 answers
67 views
I'm having a problem with the Slider when using R2L languages. The slider is being displayed on top of th Page x of y of the RadGrid.

Issue occurs only on FireFox/Chrome/Safari. Works fine with IE.

<PagerStyle Mode="slider" Wrap="true"></PagerStyle>

Your earliest reply is appreciated.

Thanks,
Andrew
Andrew
Top achievements
Rank 1
 answered on 21 Feb 2011
1 answer
84 views
Hi,
 I have 2 issues below I mention, please I hope you give solution asap to me. I'm using Q22010 version of RadControls.

1.    In Radeditor editable mode, I enter some data/ insert link button (see first attachment), then click on Update button in radeditor. the data can be saved. but display font size  as too small (see second attachment).  

2.  In RadEditor bottom I want to only symbols like Pencil symbol,<>, preview symbol only how to set ? Plese see third attachment.
 

  Advance In Thanks
Mr.Perfect
Rumen
Telerik team
 answered on 21 Feb 2011
4 answers
132 views
Hi All,

Like Silverlight Control is there a way to change input method of DateTimePicker to Month... I want my Calander to show only name of months and years
Sebastian
Telerik team
 answered on 21 Feb 2011
8 answers
268 views
Hi. I noticed since upgrading to Q2 2009 (2009_2_701) controls that input buttons text are floating to the right instead of center when the page uses the FormDecorator. Is this a bug or by design? You can clearly see it in the demos.

http://demos.telerik.com/aspnet-ajax/formdecorator/examples/default/defaultcs.aspx

Applying a float: none !important or text-align: center !important just seems to remove all formatting on the button.

Daniel
Georgi Tunev
Telerik team
 answered on 21 Feb 2011
1 answer
81 views
I use radgrid, click on a link on the radgrid to open a radwindow on the top of the radgrid. Sometimes, the radwindow frame/edge is kind of transparancy/invidible, can not see the close button, but the close button is actually there, just has no color.

It is very strange. The problem only happens to some of the user/browser while using the same web app on the server. Sometimes, the problem happened on me, but not on someone else using the same web application, but the other day, happened to someone else.  

Not sure how this will happen. It never happen on my local box while in development. Only happens when move the the servers.



<

 

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

 

 

 

VisibleStatusbar="false" Height="600px" Width="800px"

 

 

 

>

 

 

 

<Windows>

 

 

 

 

 

<telerik:RadWindow ID="TranslationView" runat="server" OnClientClose="OnClientClose"

 

 

 

NavigateUrl="TagLanguageVerticalView.aspx" runat="server" VisibleStatusbar="false"

 

 

Title="Translation View">

 

 

 

</telerik:RadWindow>

 

 

 

 

 

<telerik:RadWindow ID="History" Top="20" Left="100"

 

 

 

runat="server" NavigateUrl="History.aspx" VisibleStatusBar="false" Title="History">

 

 

 

 

 

</telerik:RadWindow>

 

 

 

</Windows>

 

 

 

</telerik:RadWindowManager>

 

Georgi Tunev
Telerik team
 answered on 21 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?