New to Telerik UI for ASP.NET Core? Download free 30-day trial

Comments

The Spreadsheet offers support for comments to be placed within each of its cells.

The following example demonstrates how a cell in the Spreadsheet can be initially configured to contain a comment.

    @(Html.Kendo().Spreadsheet()
        .Name("spreadsheet")
        .Sheets(sheets =>
        {
            sheets.Add()
            .Name("Sheet1")
            .Columns(c =>
            {
                c.Add().Width(300);
            })
            .Rows(rows =>
            {
                rows.Add().Height(70).Cells(cells =>
                {
                    cells.Add()
                        .Value("This cell has a comment.")
                        .Bold(true)
                        .Comment("Comment set on the cell with the Spreadsheet initialization.");
                });
            });
        })
    )
    <kendo-spreadsheet name="spreadsheet">
        <sheets>
            <sheet name="Sheet1">
                <columns>
                    <sheet-column width="115">
                    </sheet-column>
                </columns>
                <rows>
                    <sheet-row height="25">
                        <cells>
                            <cell value="This cell has a comment." comment="Comment set on the cell with the Spreadsheet initialization." text-align="SpreadsheetTextAlign.Center">
                            </cell>
                        </cells>
                    </sheet-row>
                </rows>
            </sheet>
        </sheets>
    </kendo-spreadsheet>

See Also

In this article