Resolve comment in Code

Hello,

if I have the id of a comment how can I resolve it in code? At the moment we have this code:


const editor = (this.documentEditor as DocumentEditorContainerComponent).documentEditor;
if (editor == null) {
    console.error("editor wasn't ready");
    return;
}

const comment = editor.getComments().find(x => x.id === commentId);
if (comment == null) {
    console.warn("no comment found with id", commentId);
    return;
}

comment.commentProperties.isResolved = true;


2 Replies

AA Akshaya Arivoli Syncfusion Team March 24, 2026 08:08 AM UTC

Hi Jan,

We are currently checking your query based on the information provided. We will get back to you with further updates shortly. 

Regards,

Akshaya



AA Akshaya Arivoli Syncfusion Team March 24, 2026 01:38 PM UTC

Hi Jan,

Thank you for your update.

The isResolved property in CommentProperties is used only to indicate whether a comment is resolved or not. It cannot be used to mark a comment as resolved programmatically. Currently, the Document Editor does not support resolving comments from the code‑behind or through any API.


We have already logged your requirement to resolve comments from code is a feature request from our end, but we do not have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features and implement them based on feature rank, customer request count, and volume wish-list.  

The status of implementation can be tracked through the feedback portal link below:  

Support for customizing the appearance of comments and track changes pane in JavaScript | Feedback Portal  

We are closing this forum today and directing you to our feedback platform for future correspondence regarding feature requests, allowing our technical team to engage with your input directly. Be assured that closing the ticket does not affect our commitment to considering your suggestion

Regards,

Akshaya


Loader.
Up arrow icon