Add/Remove Comments From Client Side

Contents
[ ]

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

// 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>