EditorDropDown Not Working with Track Change or Comments On

3 posts, 0 answers
  1. Michael
    Michael avatar
    2 posts
    Member since:
    May 2015

    Posted 07 Jun 2015 Link to this post

    I'm new to Telerik. Quite liking the toolkit so far. I encountered some strange behavior I would like some help with.
    I'm using Internet Explorer 11.0.19. This bug seems to only happen in that browser, and not on Firefox.

    I have a RadEditor with the page load function to turn enable comments and tracking. The problem is after it is turned on, on page load, clicking on a dropdown toolbar item would not do anything, i.e. no dropdown options shown. Getting rid of the code seems to fix the problem, but I need to have the flexibility to turn off and on comments and tracking from code-behind, as I'd like to dynamically change the comments and tracking options depending on the logged in user.

    The bug seems to only happen if the first thing I do after page load is click on the dropdown options. If I click on the RadEditor content pane, everything would work fine.

    Other things I tried:
    * Focus RadEditor on page load (Didn't work)
    * Move the C# code of enabling the comments and track changes to RadEditor onload, and oninit (Didn't Work, still same problem)

    WebForm2.aspx content:

    <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Telerik RadEditor Bug Problem Demonstration.aspx.cs" Inherits="TelerikRadEditor.WebForm2" %><br><%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %><br><asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"><br></asp:Content><br><asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"><br>    <telerik:Radeditor CssClass="RadEditorCustomCSS" runat="server" ID="RadEditor" AutoResizeHeight="true"<br>        ToolsFile="EditorRibbonBar.xml" ToolbarMode="RibbonBar" StripFormattingOptions="MsWord,ConvertWordLists" ContentFilters="DefaultFilters,PdfExportFilter"><br>        <ImageManager ViewPaths="~/fileuploads/images" UploadPaths="~/fileuploads/images" DeletePaths="~/fileuploads/images" EnableImageEditor="true" MaxUploadFileSize="26214400"/><br>        <MediaManager ViewPaths="~/fileuploads/media" UploadPaths="~/fileuploads/media" DeletePaths="~/fileuploads/media" MaxUploadFileSize="26214400"/><br>        <FlashManager ViewPaths="~/fileuploads/flash" UploadPaths="~/fileuploads/flash" DeletePaths="~/fileuploads/flash" MaxUploadFileSize="26214400"/><br>        <TemplateManager ViewPaths="~/fileuploads/templates" UploadPaths="~/fileuploads/templates" DeletePaths="~/fileuploads/templates" MaxUploadFileSize="26214400"/><br>        <DocumentManager ViewPaths="~/fileuploads/documents" UploadPaths="~/fileuploads/documents" DeletePaths="~/fileuploads/documents" MaxUploadFileSize="26214400"/><br>    </telerik:Radeditor><br></asp:Content><br><asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server"><br></asp:Content

    C# Code-Behind:

    using System;<br>using System.Collections.Generic;<br>using System.Linq;<br>using System.Web;<br>using System.Web.UI.WebControls;<br><br>using System.IO;<br>using Telerik.Web.UI;<br>using Telerik.Web.UI.Editor.Import;<br>using Telerik.Windows.Documents.Flow.FormatProviders.Docx;<br>using Telerik.Windows.Documents.Flow.Model;<br>using Telerik.Windows.Documents.Flow.Model.Styles;<br><br> <br>namespace TelerikRadEditor<br>{<br>    public partial class WebForm2 : System.Web.UI.Page<br>    {<br>        protected void Page_Load(object sender, EventArgs e)<br>        {<br>            //Validate User<br>            //After validation, adjust the below settings accordingly...<br>            RadEditor TRE = RadEditor;<br>            String author = "aUser";<br>            String userColor = "reU0";<br><br>            //Note comments also uses the track change settings author and usercssid<br>            TRE.EnableComments = true;<br>            TRE.EnableTrackChanges = true;<br>            TRE.TrackChangesSettings.CanAcceptTrackChanges = true;<br>            TRE.TrackChangesSettings.Author = author;<br>            TRE.TrackChangesSettings.UserCssId = userColor;<br>        }<br>    }<br>}

     

     

  2. Michael
    Michael avatar
    2 posts
    Member since:
    May 2015

    Posted 07 Jun 2015 Link to this post

    Sorry for the re-post, I misused the code snippet tool for my first post.

    WebForm2.aspx:

    <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Telerik RadEditor Bug Problem Demonstration.aspx.cs" Inherits="TelerikRadEditor.WebForm2" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
    <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <telerik:Radeditor CssClass="RadEditorCustomCSS" runat="server" ID="RadEditor" AutoResizeHeight="true"
            ToolsFile="EditorRibbonBar.xml" ToolbarMode="RibbonBar" StripFormattingOptions="MsWord,ConvertWordLists" ContentFilters="DefaultFilters,PdfExportFilter">
            <ImageManager ViewPaths="~/fileuploads/images" UploadPaths="~/fileuploads/images" DeletePaths="~/fileuploads/images" EnableImageEditor="true" MaxUploadFileSize="26214400"/>
            <MediaManager ViewPaths="~/fileuploads/media" UploadPaths="~/fileuploads/media" DeletePaths="~/fileuploads/media" MaxUploadFileSize="26214400"/>
            <FlashManager ViewPaths="~/fileuploads/flash" UploadPaths="~/fileuploads/flash" DeletePaths="~/fileuploads/flash" MaxUploadFileSize="26214400"/>
            <TemplateManager ViewPaths="~/fileuploads/templates" UploadPaths="~/fileuploads/templates" DeletePaths="~/fileuploads/templates" MaxUploadFileSize="26214400"/>
            <DocumentManager ViewPaths="~/fileuploads/documents" UploadPaths="~/fileuploads/documents" DeletePaths="~/fileuploads/documents" MaxUploadFileSize="26214400"/>
        </telerik:Radeditor>
    </asp:Content>
    <asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    </asp:Content>

    C# Code-Behind:

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI.WebControls;
     
    using System.IO;
    using Telerik.Web.UI;
    using Telerik.Web.UI.Editor.Import;
    using Telerik.Windows.Documents.Flow.FormatProviders.Docx;
    using Telerik.Windows.Documents.Flow.Model;
    using Telerik.Windows.Documents.Flow.Model.Styles;
     
     
    namespace TelerikRadEditor
    {
        public partial class WebForm2 : System.Web.UI.Page
        {
            protected void Page_Load(object sender, EventArgs e)
            {
                //Validate User
                //After validation, adjust the below settings accordingly...
                RadEditor TRE = RadEditor;
                String author = "aUser";
                String userColor = "reU0";
     
                //Note comments also uses the track change settings author and usercssid
                TRE.EnableComments = true;
                TRE.EnableTrackChanges = true;
                TRE.TrackChangesSettings.CanAcceptTrackChanges = true;
                TRE.TrackChangesSettings.Author = author;
                TRE.TrackChangesSettings.UserCssId = userColor;
            }
        }
    }

     

    ~

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 10 Jun 2015 Link to this post

    Hi Michael,

    The same matter have been discussed in an open support ticket (ID 942881). Please, consider using only one ticketing system to get in touch, so that we could properly investigate the information provided and provide fast and proper support assistance. Further, I suggest continuing the conversation in the official ticketing system.

    As for anyone else interested in the same matter, using the plain RadEditor configuration does not lead to the same beahvior. It might a result of nesting the editor in the TabStrip, or using AJAX. To determine better the situation more details have been requested.

    Regards,
    Ianko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top