Editor comments - multiple user scenario

6 posts, 1 answers
  1. Shan
    Shan avatar
    7 posts
    Member since:
    Mar 2012

    Posted 10 Apr 2014 Link to this post

    Hello, is there an example of http://demos.telerik.com/aspnet-ajax/editor/examples/comments/defaultcs.aspx somewhere with multiple users? I am not understanding how to integrate multiple users. Specifically, why does the dialog "Comment" appear in editable mode for some comments when I click on them like this:



    And then for other user's changes, it shows as a read-only box? The thing that I'm not able to understand is when does it show as an editable box, and when does it show as read-only text?

    Our scenario is that, we need a system that will support comments from several different users, all in the same editor instance. Only the comments that the given logged in user had made in our system should be editable. The rest should not be. Is that supported, and if so how, and also is there a demo available that you can share with me?  


























  2. Shan
    Shan avatar
    7 posts
    Member since:
    Mar 2012

    Posted 10 Apr 2014 in reply to Shan Link to this post

    Just replying to myself - the images that I referred to in my question didn't seem to come through, even though they appeared in the editor when I composed this post. They are attached here.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shan
    Shan avatar
    7 posts
    Member since:
    Mar 2012
  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 14 Apr 2014 Link to this post

    Hello Shan,

    After a comment is saved properly, selecting this comment will only open a readable container and further editing should be done after clicking the Edit button of the Comment dialog.

    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Shan
    Shan avatar
    7 posts
    Member since:
    Mar 2012

    Posted 14 Apr 2014 in reply to Ianko Link to this post

    Thanks Ianko, do you have a comments example for 2 or more users? 
  7. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 15 Apr 2014 Link to this post

    Hi Shan,

    There is no available demo that introduces multiple user functionality.

    I suggest testing such scenarios by implementing locally a sample project following this example:

    ASP.NET
    <telerik:RadEditor ID="RadEditor1" EnableTrackChanges="true" runat="server">
        <Tools>
            <telerik:EditorToolGroup>
                <telerik:EditorTool Name="AddComment" Text="Add Comment"/>
                <telerik:EditorTool Name="RemoveComment" Text="Remove comment"/>
                <telerik:EditorTool Name="RemoveAllComments" Text="Remove All Comments"/>
            </telerik:EditorToolGroup>
            <telerik:EditorToolGroup>
                <telerik:EditorTool Name="AcceptTrackChange" Text="Accept Track Change"/>
                <telerik:EditorTool Name="RejectTrackChange" Text="Reject Track Change"/>
                <telerik:EditorTool Name="AcceptAllTrackChanges" Text="Accept All Track Changes"/>
                <telerik:EditorTool Name="RejectAllTrackChanges" Text="Reject All Track Changes"/>
                <telerik:EditorTool Name="EnableTrackChangesOverride" Text="Enable Track Changes Override"/>
            </telerik:EditorToolGroup>
        </Tools>
    </telerik:RadEditor>
     
    <hr />
     
    <asp:Label Text="Set New Author" runat="server" />
    <br />
    <br />
    New Name: <asp:TextBox runat="server" ID="Textbox1" />
    <br />
    <asp:CheckBox Text="Can Accept Track Changes" runat="server" Checked="false" ID="RadioButton1"/>
    <br />
    Styles: <asp:DropDownList runat="server" ID="DropDown1">
        <asp:ListItem Text="reU0" />
        <asp:ListItem Text="reU1" />
        <asp:ListItem Text="reU2" />
        <asp:ListItem Text="reU3" />
        <asp:ListItem Text="reU4" />
        <asp:ListItem Text="reU5" />
        <asp:ListItem Text="reU6" />
        <asp:ListItem Text="reU7" />
        <asp:ListItem Text="reU8" />
        <asp:ListItem Text="reU9" />
    </asp:DropDownList>
    <br />
    <asp:Button Text="Change Author" runat="server" OnClick="Unnamed_Click"/>

    C#
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            RadEditor1.TrackChangesSettings.Author = "AuthorName";
            RadEditor1.TrackChangesSettings.CanAcceptTrackChanges = false;
            RadEditor1.TrackChangesSettings.UserCssId = "reU0";
        }
    }
    protected void Unnamed_Click(object sender, EventArgs e)
    {
        RadEditor1.TrackChangesSettings.Author = Textbox1.Text;
        RadEditor1.TrackChangesSettings.CanAcceptTrackChanges = RadioButton1.Checked;
        RadEditor1.TrackChangesSettings.UserCssId = DropDown1.SelectedItem.Text;
    }


    Regards,
    Ianko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017