Add/Remove Comments From Client Side
Contents
[
Hide
]
This topic discusses adding and removing Comments from client side in the Aspose.Cells.GridWeb control.
Aspose.Cells GridWeb now supports adding and removing Comments from client side. For this, the API provides the “addcomments” and “delcomments” functions. The following code snippet demonstrates adding and removing comments from client side in GridWeb.
Sample Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-.NET | |
<script> | |
function addComment() { | |
gridwebinstance.getByIndex(0).addcomments({note:'hello',author:'aspose'}); | |
} | |
function removeComment() { | |
gridwebinstance.getByIndex(0).delcomments(); | |
} | |
</script> |