@model LoadFromArray.Models.DatasheetViewModel

@(Html.Kendo().Spreadsheet()
    .Name("spreadsheet_Datasheet")
    .HtmlAttributes(new { style = "width:100%; height: 70vh" })
    .Toolbar(false)
    .Sheetsbar(true)
)

<script type="text/javascript">
    $(document).ready(function() { 
        $.ajax({
            type: "POST",
            url: '@Url.Action("Get", "Home")',
            contentType: "application/json; charset=utf-8",
            data: JSON.stringify({ datasheetid: @Model.Id }),
            dataType: "json",
            success: function (data) {
                var spreadsheet = $("#spreadsheet_Datasheet").data("kendoSpreadsheet");
                spreadsheet.fromJSON(data);
            },
            error: function (result) {
                alert(result.message);
            }
        });
    });
</script>