{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "spreadsheet-editor-protection",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "Spreadsheet",
  "variant": "protection",
  "dependencies": [
    "Syncfusion.AspNetCore.Spreadsheet"
  ],
  "description": "Spreadsheet editor demonstrating protected worksheets and locked cell editing behavior.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/aspnet-core/llms.txt",
    "skillPack": "syncfusion/aspnetcore-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-core/spreadsheet-editor-protection.md"
  },
  "files": [
    {
      "target": "src/components/spreadsheet-editor-protection/spreadsheet-editor.cshtml",
      "content": "@page\n@namespace aspnet_core.SpreadsheetEditor.Protection\n@model EJ2CoreSampleBrowser.SpreadsheetEditor.Protection.ProtectionModel\n@using Syncfusion.EJ2\n@using Syncfusion.EJ2.Spreadsheet\n\n    <div class=\"control-section\">\n        <ejs-spreadsheet id=\"spreadsheet\" password=\"spreadsheet\" created=\"createdHandler\">\n            <e-spreadsheet-sheets>\n                <e-spreadsheet-sheet name=\"EMI Calculator\" isProtected=\"true\">\n                    <e-spreadsheet-rows>\n                        <e-spreadsheet-row height=\"40\">\n                            <e-spreadsheet-cells>\n                                <e-spreadsheet-cell index=\"1\" value=\"Loan Calculator\"></e-spreadsheet-cell>\n                            </e-spreadsheet-cells>\n                        </e-spreadsheet-row>\n                        <e-spreadsheet-row height=\"36\">\n                            <e-spreadsheet-cells>\n                                <e-spreadsheet-cell index=\"1\" value=\"Loan Amount\"></e-spreadsheet-cell>\n                                <e-spreadsheet-cell index=\"2\" format=\"$#,##0.00\" value=\"100000\"></e-spreadsheet-cell>\n                            </e-spreadsheet-cells>\n                        </e-spreadsheet-row>\n                        <e-spreadsheet-row height=\"36\">\n                            <e-spreadsheet-cells>\n                                <e-spreadsheet-cell index=\"1\" value=\"Interest Rate\"></e-spreadsheet-cell>\n                                <e-spreadsheet-cell index=\"2\" format=\"0.00%\" value=\"0.08\"></e-spreadsheet-cell>\n                            </e-spreadsheet-cells>\n                        </e-spreadsheet-row>\n                        <e-spreadsheet-row height=\"36\">\n                            <e-spreadsheet-cells>\n                                <e-spreadsheet-cell index=\"1\" value=\"Period (years)\"></e-spreadsheet-cell>\n                                <e-spreadsheet-cell index=\"2\" value=\"1\"></e-spreadsheet-cell>\n                            </e-spreadsheet-cells>\n                        </e-spreadsheet-row>\n                    </e-spreadsheet-rows>\n                    <e-spreadsheet-columns>\n                        <e-spreadsheet-column index=\"1\" width=\"190\"></e-spreadsheet-column>\n                        <e-spreadsheet-column width=\"100\"></e-spreadsheet-column>\n                    </e-spreadsheet-columns>\n                </e-spreadsheet-sheet>\n                <e-spreadsheet-sheet name=\"EMI Schedule\" isProtected=\"true\">\n                    <e-spreadsheet-ranges>\n                        <e-spreadsheet-range dataSource=\"@Model.ScheduleData\" showFieldAsHeader=\"true\"></e-spreadsheet-range>\n                    </e-spreadsheet-ranges>\n                </e-spreadsheet-sheet>\n            </e-spreadsheet-sheets>\n        </ejs-spreadsheet>\n    </div>\n\n    <script>\n        function createdHandler() {\n            this.numberFormat('$#,##0.00', 'EMI Schedule!C2:F13');\n            this.numberFormat('m/d/yyyy', 'EMI Schedule!B2:B13');\n        }\n    </script>\n"
    },
    {
      "target": "src/components/spreadsheet-editor-protection/spreadsheet-editor.cshtml.cs",
      "content": "using System;\nusing System.Collections.Generic;\nusing Microsoft.AspNetCore.Mvc.RazorPages;\n\nnamespace EJ2CoreSampleBrowser.SpreadsheetEditor.Protection\n{\n    public class ProtectionModel : PageModel\n    {\n        public List<object> ScheduleData { get; set; }\n\n        public void OnGet()\n        {\n            ScheduleData = new List<object>\n            {\n                new { Tenure = \"1\", PaymentDate = \"03-04-2025\", EMI = \"8698.84\", Principal = \"8032.18\", Interest = \"666.67\", Balance = \"91967.82\" },\n                new { Tenure = \"2\", PaymentDate = \"04-04-2025\", EMI = \"8698.84\", Principal = \"8085.72\", Interest = \"613.12\", Balance = \"83882.10\" },\n                new { Tenure = \"3\", PaymentDate = \"05-04-2025\", EMI = \"8698.84\", Principal = \"8139.63\", Interest = \"559.21\", Balance = \"75742.47\" },\n            };\n        }\n    }\n}\n"
    }
  ]
}