Skip to content

Commit a4ca643

Browse files
999367: Updated code snippets in Core and MVC
1 parent 2bf200f commit a4ca643

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

Document-Processing/Excel/Spreadsheet/ASP-NET-CORE/comment.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ Cells with comment display a small comment indicator; hover to preview the comme
1818
The Syncfusion Spreadsheet does not automatically track user identity. To tag new comments and replies with an author name, set the `author` property when initializing the Spreadsheet.
1919

2020
```js
21-
@(Html.EJ2().Spreadsheet("spreadsheet")
22-
.Author("Place the Author Name Here")
23-
.Render()
24-
)
21+
<ejs-spreadsheet id="spreadsheet" author="Place the Author Name Here">
22+
</ejs-spreadsheet>
2523
```
2624
>If the author property is not set, "Guest User" will be displayed as the author for comment and replies by default.
2725
@@ -74,7 +72,7 @@ You can also use the `isResolved` property in the comment model when initializin
7472

7573
```ts
7674
// Update a cell with a comment using the updateCell method
77-
this.updateCell({
75+
spreadsheet.updateCell({
7876
comment: {
7977
author: 'Chistoper', text: 'Are you completed the report',
8078
createdTime: 'January 03, 2026 at 5:00 PM',

Document-Processing/Excel/Spreadsheet/ASP-NET-MVC/comment.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ Cells with comment display a small comment indicator; hover to preview the comme
1818
The Syncfusion Spreadsheet does not automatically track user identity. To tag new comments and replies with an author name, set the `author` property when initializing the Spreadsheet.
1919

2020
```js
21-
<ejs-spreadsheet id="spreadsheet" author="Place the Author Name Here">
22-
</ejs-spreadsheet>
21+
@(Html.EJ2().Spreadsheet("spreadsheet")
22+
.Author("Place the Author Name Here")
23+
.Render()
24+
)
2325
```
2426
>If the author property is not set, "Guest User" will be displayed as the author for comment and replies by default.
2527
@@ -72,7 +74,7 @@ You can also use the `isResolved` property in the comment model when initializin
7274

7375
```ts
7476
// Update a cell with a comment using the updateCell method
75-
this.updateCell({
77+
spreadsheet.updateCell({
7678
comment: {
7779
author: 'Chistoper', text: 'Are you completed the report',
7880
createdTime: 'January 03, 2026 at 5:00 PM',

0 commit comments

Comments
 (0)