From 0ef51efa5e7dd3228804ee442e51fa3ba433e5bc Mon Sep 17 00:00:00 2001 From: JanakiramanSakthivel Date: Fri, 27 Dec 2024 15:06:50 +0530 Subject: [PATCH 1/5] 930405: Checked and corrected the Spreadsheet code snippets for ASP .NET Core documentation. --- .../spreadsheet/autofill/tagHelper | 2 +- .../chart-cs1/EJ2_ASP.MVC/chartController.cs | 10 +- .../EJ2_ASP.NETCORE/chartController.cs | 10 +- .../code-snippet/spreadsheet/clear/tagHelper | 2 +- .../spreadsheet/data-validation-cs2/tagHelper | 16 +- .../spreadsheet/data-validation/tagHelper | 42 +-- .../dynamic-data-binding/tagHelper | 4 +- .../code-snippet/spreadsheet/image/tagHelper | 321 ++++++++---------- .../EJ2_ASP.MVC/insertSheetController.cs | 20 +- .../EJ2_ASP.NETCORE/insertSheetController.cs | 20 +- .../tagHelper | 2 +- .../spreadsheet/insert-sheet/tagHelper | 2 +- .../spreadsheet/sheet-visiblity/tagHelper | 4 +- 13 files changed, 205 insertions(+), 250 deletions(-) diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/autofill/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/autofill/tagHelper index 5dd723e973..877a0e58f8 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/autofill/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/autofill/tagHelper @@ -26,7 +26,7 @@ this.autoFill('B4:B11', 'B2:B3', 'Down', 'FillFormattingOnly'); this.autoFill('C4:C11', 'C2:C3', 'Down', 'FillWithoutFormatting'); } - document.getElementById("togglebtn").addEventListener('click', function () { + document.getElementById("showfillbtn").addEventListener('click', function () { var spreadsheetObj = document.getElementById("spreadsheet").ej2_instances[0]; var showFillOptions = spreadsheetObj.autoFillSettings.showFillOptions; spreadsheetObj.autoFillSettings.showFillOptions = !showFillOptions; diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/chart-cs1/EJ2_ASP.MVC/chartController.cs b/ej2-asp-core-mvc/code-snippet/spreadsheet/chart-cs1/EJ2_ASP.MVC/chartController.cs index 921b698370..20fdda7d9c 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/chart-cs1/EJ2_ASP.MVC/chartController.cs +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/chart-cs1/EJ2_ASP.MVC/chartController.cs @@ -2,11 +2,11 @@ public ActionResult Index() { List chartData = new List() { - new { Book= "Classics", Year 2016= "19033", Year 2017= "78453", Year 2018= "24354", Year 2019= "18757", Year 2020= "34343" }, - new { Book= "Mystery", Year 2016= "50400", Year 2017= "82311", Year 2018= "131003", Year 2019= "19899", Year 2020= "42200" }, - new { Book= "Romance", Year 2016= "18002", Year 2017= "49529", Year 2018= "79567", Year 2019= "12302", Year 2020= "21277" }, - new { Book= "Sci-Fi & Fantasy", Year 2016= "10033", Year 2017= "51200", Year 2018= "66211", Year 2019= "12899", Year 2020= "18779" }, - new { Book= "Horror", Year 2016= "23454", Year 2017= "78665", Year 2018= "81232", Year 2019= "19888", Year 2020= "20986" } + new { Book= "Classics", Year2016= "19033", Year2017= "78453", Year2018= "24354", Year2019= "18757", Year2020= "34343" }, + new { Book= "Mystery", Year2016= "50400", Year2017= "82311", Year2018= "131003", Year2019= "19899", Year2020= "42200" }, + new { Book= "Romance", Year2016= "18002", Year2017= "49529", Year2018= "79567", Year2019= "12302", Year2020= "21277" }, + new { Book= "Sci-Fi & Fantasy", Year2016= "10033", Year2017= "51200", Year2018= "66211", Year2019= "12899", Year2020= "18779" }, + new { Book= "Horror", Year2016= "23454", Year2017= "78665", Year2018= "81232", Year2019= "19888", Year2020= "20986" } }; ViewBag.DefaultData = chartData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/chart-cs1/EJ2_ASP.NETCORE/chartController.cs b/ej2-asp-core-mvc/code-snippet/spreadsheet/chart-cs1/EJ2_ASP.NETCORE/chartController.cs index f714226b6a..1bb9858121 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/chart-cs1/EJ2_ASP.NETCORE/chartController.cs +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/chart-cs1/EJ2_ASP.NETCORE/chartController.cs @@ -2,11 +2,11 @@ public IActionResult Index() { List chartData = new List() { - new { Book= "Classics", Year 2016= "19033", Year 2017= "78453", Year 2018= "24354", Year 2019= "18757", Year 2020= "34343" }, - new { Book= "Mystery", Year 2016= "50400", Year 2017= "82311", Year 2018= "131003", Year 2019= "19899", Year 2020= "42200" }, - new { Book= "Romance", Year 2016= "18002", Year 2017= "49529", Year 2018= "79567", Year 2019= "12302", Year 2020= "21277" }, - new { Book= "Sci-Fi & Fantasy", Year 2016= "10033", Year 2017= "51200", Year 2018= "66211", Year 2019= "12899", Year 2020= "18779" }, - new { Book= "Horror", Year 2016= "23454", Year 2017= "78665", Year 2018= "81232", Year 2019= "19888", Year 2020= "20986" } + new { Book= "Classics", Year2016= "19033", Year2017= "78453", Year2018= "24354", Year2019= "18757", Year2020= "34343" }, + new { Book= "Mystery", Year2016= "50400", Year2017= "82311", Year2018= "131003", Year2019= "19899", Year2020= "42200" }, + new { Book= "Romance", Year2016= "18002", Year2017= "49529", Year2018= "79567", Year2019= "12302", Year2020= "21277" }, + new { Book= "Sci-Fi & Fantasy", Year2016= "10033", Year2017= "51200", Year2018= "66211", Year2019= "12899", Year2020= "18779" }, + new { Book= "Horror", Year2016= "23454", Year2017= "78665", Year2018= "81232", Year2019= "19888", Year2020= "20986" } }; ViewBag.DefaultData = chartData; return View(); diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/clear/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/clear/tagHelper index bf6e2416d5..4c62f51c7e 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/clear/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/clear/tagHelper @@ -12,7 +12,7 @@ + diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/EJ2_ASP.MVC/insertSheetController.cs b/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/EJ2_ASP.MVC/insertSheetController.cs index 520ec179cc..20df3cb568 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/EJ2_ASP.MVC/insertSheetController.cs +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/EJ2_ASP.MVC/insertSheetController.cs @@ -2,16 +2,16 @@ public ActionResult Index() { List defaultData = new List() { - new { Item Name= "Casual Shoes", Date= "02/14/2014", Time= "11:34:32 AM", Quantity= "10", Price= "20", Amount= "200", Discount= "1", Profit= "10" }, - new { Item Name= "Sports Shoes", Date= "06/11/2014", Time= "05:56:32 AM", Quantity= "20", Price= "30", Amount= "600", Discount= "5", Profit= "50" }, - new { Item Name= "Formal Shoes", Date= "07/27/2014", Time= "03:32:44 AM", Quantity= "20", Price= "15", Amount= "300", Discount= "7", Profit= "27" }, - new { Item Name= "Sandals & Floaters", Date= "11/21/2014", Time= "06:23:54 AM", Quantity= "15", Price= "20", Amount= "300", Discount= "11", Profit= "67" }, - new { Item Name= "Flip- Flops & Slippers", Date= "06/23/2014", Time= "12:43:59 AM", Quantity= "30", Price= "10", Amount= "300", Discount= "10", Profit= "70" }, - new { Item Name= "Sneakers", Date= "07/22/2014", Time= "10:55:53 AM", Quantity= "40", Price= "20", Amount= "800", Discount= "13", Profit= "66" }, - new { Item Name= "Running Shoes", Date= "02/04/2014", Time= "03:44:34 AM", Quantity= "20", Price= "10", Amount= "200", Discount= "3", Profit= "14" }, - new { Item Name= "Loafers", Date= "11/30/2014", Time= "03:12:52 AM", Quantity= "31", Price= "10", Amount= "310", Discount= "6", Profit= "29" }, - new { Item Name= "Cricket Shoes", Date= "07/09/2014", Time= "11:32:14 AM", Quantity= "41", Price= "30", Amount= "1210", Discount= "12", Profit= "166" }, - new { Item Name= "T-Shirts", Date= "10/31/2014", Time= "12:01:44 AM", Quantity= "50", Price= "10", Amount= "500", Discount= "9", Profit= "55" } + new { ItemName= "Casual Shoes", Date= "02/14/2014", Time= "11:34:32 AM", Quantity= "10", Price= "20", Amount= "200", Discount= "1", Profit= "10" }, + new { ItemName= "Sports Shoes", Date= "06/11/2014", Time= "05:56:32 AM", Quantity= "20", Price= "30", Amount= "600", Discount= "5", Profit= "50" }, + new { ItemName= "Formal Shoes", Date= "07/27/2014", Time= "03:32:44 AM", Quantity= "20", Price= "15", Amount= "300", Discount= "7", Profit= "27" }, + new { ItemName= "Sandals & Floaters", Date= "11/21/2014", Time= "06:23:54 AM", Quantity= "15", Price= "20", Amount= "300", Discount= "11", Profit= "67" }, + new { ItemName= "Flip- Flops & Slippers", Date= "06/23/2014", Time= "12:43:59 AM", Quantity= "30", Price= "10", Amount= "300", Discount= "10", Profit= "70" }, + new { ItemName= "Sneakers", Date= "07/22/2014", Time= "10:55:53 AM", Quantity= "40", Price= "20", Amount= "800", Discount= "13", Profit= "66" }, + new { ItemName= "Running Shoes", Date= "02/04/2014", Time= "03:44:34 AM", Quantity= "20", Price= "10", Amount= "200", Discount= "3", Profit= "14" }, + new { ItemName= "Loafers", Date= "11/30/2014", Time= "03:12:52 AM", Quantity= "31", Price= "10", Amount= "310", Discount= "6", Profit= "29" }, + new { ItemName= "Cricket Shoes", Date= "07/09/2014", Time= "11:32:14 AM", Quantity= "41", Price= "30", Amount= "1210", Discount= "12", Profit= "166" }, + new { ItemName= "T-Shirts", Date= "10/31/2014", Time= "12:01:44 AM", Quantity= "50", Price= "10", Amount= "500", Discount= "9", Profit= "55" } }; ViewBag.DefaultData = defaultData; diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/EJ2_ASP.NETCORE/insertSheetController.cs b/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/EJ2_ASP.NETCORE/insertSheetController.cs index 4253bfad16..05937aca0d 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/EJ2_ASP.NETCORE/insertSheetController.cs +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/EJ2_ASP.NETCORE/insertSheetController.cs @@ -2,16 +2,16 @@ public IActionResult Index() { List defaultData = new List() { - new { Item Name= "Casual Shoes", Date= "02/14/2014", Time= "11:34:32 AM", Quantity= "10", Price= "20", Amount= "200", Discount= "1", Profit= "10" }, - new { Item Name= "Sports Shoes", Date= "06/11/2014", Time= "05:56:32 AM", Quantity= "20", Price= "30", Amount= "600", Discount= "5", Profit= "50" }, - new { Item Name= "Formal Shoes", Date= "07/27/2014", Time= "03:32:44 AM", Quantity= "20", Price= "15", Amount= "300", Discount= "7", Profit= "27" }, - new { Item Name= "Sandals & Floaters", Date= "11/21/2014", Time= "06:23:54 AM", Quantity= "15", Price= "20", Amount= "300", Discount= "11", Profit= "67" }, - new { Item Name= "Flip- Flops & Slippers", Date= "06/23/2014", Time= "12:43:59 AM", Quantity= "30", Price= "10", Amount= "300", Discount= "10", Profit= "70" }, - new { Item Name= "Sneakers", Date= "07/22/2014", Time= "10:55:53 AM", Quantity= "40", Price= "20", Amount= "800", Discount= "13", Profit= "66" }, - new { Item Name= "Running Shoes", Date= "02/04/2014", Time= "03:44:34 AM", Quantity= "20", Price= "10", Amount= "200", Discount= "3", Profit= "14" }, - new { Item Name= "Loafers", Date= "11/30/2014", Time= "03:12:52 AM", Quantity= "31", Price= "10", Amount= "310", Discount= "6", Profit= "29" }, - new { Item Name= "Cricket Shoes", Date= "07/09/2014", Time= "11:32:14 AM", Quantity= "41", Price= "30", Amount= "1210", Discount= "12", Profit= "166" }, - new { Item Name= "T-Shirts", Date= "10/31/2014", Time= "12:01:44 AM", Quantity= "50", Price= "10", Amount= "500", Discount= "9", Profit= "55" } + new { ItemName= "Casual Shoes", Date= "02/14/2014", Time= "11:34:32 AM", Quantity= "10", Price= "20", Amount= "200", Discount= "1", Profit= "10" }, + new { ItemName= "Sports Shoes", Date= "06/11/2014", Time= "05:56:32 AM", Quantity= "20", Price= "30", Amount= "600", Discount= "5", Profit= "50" }, + new { ItemName= "Formal Shoes", Date= "07/27/2014", Time= "03:32:44 AM", Quantity= "20", Price= "15", Amount= "300", Discount= "7", Profit= "27" }, + new { ItemName= "Sandals & Floaters", Date= "11/21/2014", Time= "06:23:54 AM", Quantity= "15", Price= "20", Amount= "300", Discount= "11", Profit= "67" }, + new { ItemName= "Flip- Flops & Slippers", Date= "06/23/2014", Time= "12:43:59 AM", Quantity= "30", Price= "10", Amount= "300", Discount= "10", Profit= "70" }, + new { ItemName= "Sneakers", Date= "07/22/2014", Time= "10:55:53 AM", Quantity= "40", Price= "20", Amount= "800", Discount= "13", Profit= "66" }, + new { ItemName= "Running Shoes", Date= "02/04/2014", Time= "03:44:34 AM", Quantity= "20", Price= "10", Amount= "200", Discount= "3", Profit= "14" }, + new { ItemName= "Loafers", Date= "11/30/2014", Time= "03:12:52 AM", Quantity= "31", Price= "10", Amount= "310", Discount= "6", Profit= "29" }, + new { ItemName= "Cricket Shoes", Date= "07/09/2014", Time= "11:32:14 AM", Quantity= "41", Price= "30", Amount= "1210", Discount= "12", Profit= "166" }, + new { ItemName= "T-Shirts", Date= "10/31/2014", Time= "12:01:44 AM", Quantity= "50", Price= "10", Amount= "500", Discount= "9", Profit= "55" } }; ViewBag.DefaultData = defaultData; diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/tagHelper index 9f30d1778a..9cdda3745f 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet-change-active-sheet/tagHelper @@ -34,7 +34,7 @@ // Use the timeout function to wait until the sheet is inserted. setTimeout(() => { // Method for switching to a new sheet. - spreadsheet.goTo('new_sheet!A1'); + spreadsheetObj.goTo('new_sheet!A1'); }) }); \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet/tagHelper index 83e2c34bb1..930f9b7a8e 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/insert-sheet/tagHelper @@ -23,7 +23,7 @@ function created() { // Applies style formatting to the active sheet before inserting a new sheet this.cellFormat({ fontWeight: 'bold', textAlign: 'center' }, 'A1:H1'); - this.cellFormat({ textAlign: 'center' }, 'D2:H11'); + this.cellFormat({ textAlign: 'center' }, 'D2:H15'); // inserting a new sheet with data at 1st index // You can also insert empty sheets by specifying the start and end sheet index instead of sheet model this.insertSheet([{ diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/sheet-visiblity/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/sheet-visiblity/tagHelper index d4919d093a..02cc37279c 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/sheet-visiblity/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/sheet-visiblity/tagHelper @@ -50,9 +50,9 @@ function created() { // Applies style formatting to active visible sheet this.cellFormat({ fontWeight: 'bold', textAlign: 'center' }, 'A1:H1'); - this.cellFormat({ textAlign: 'center' }, 'D2:H11'); + this.cellFormat({ textAlign: 'center' }, 'D2:F15'); // Applies style formatting to active hidden sheet this.cellFormat({ fontWeight: 'bold', textAlign: 'center' }, 'Hidden Sheet!A1:H1'); - this.cellFormat({ textAlign: 'center' }, 'Hidden Sheet!D2:H15'); + this.cellFormat({ textAlign: 'center' }, 'Hidden Sheet!D2:F15'); } \ No newline at end of file From afb6a4938f07a4ac9935a565140e4886ee38de8a Mon Sep 17 00:00:00 2001 From: JanakiramanSakthivel Date: Fri, 27 Dec 2024 16:32:33 +0530 Subject: [PATCH 2/5] 930405: Checked and corrected the Spreadsheet code snippets for ASP .NET Core documentation. --- .../spreadsheet/clipboard/tagHelper | 3 - .../conditional-formatting/tagHelper | 3 +- .../spreadsheet/delete-row/tagHelper | 2 +- .../spreadsheet/enable-context-menu/tagHelper | 2 +- .../find-target-context-menu/tagHelper | 2 +- .../code-snippet/spreadsheet/link/tagHelper | 344 +++++++++--------- .../spreadsheet/prevent-paste/tagHelper | 3 - .../spreadsheet/protect-sheet/tagHelper | 2 +- .../spreadsheet/scrolling/tagHelper | 2 +- .../spreadsheet/show-hide/tagHelper | 4 +- .../spreadsheet/undo-redo/tagHelper | 34 +- ej2-asp-core-mvc/spreadsheet/notes.md | 1 + 12 files changed, 203 insertions(+), 199 deletions(-) diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/clipboard/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/clipboard/tagHelper index 8a4f31838c..76f1563b33 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/clipboard/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/clipboard/tagHelper @@ -15,9 +15,6 @@ \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/delete-row/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/delete-row/tagHelper index e353959dd8..9f85f27b3e 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/delete-row/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/delete-row/tagHelper @@ -1,4 +1,4 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/enable-context-menu/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/enable-context-menu/tagHelper index c6770ba122..5994b277fa 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/enable-context-menu/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/enable-context-menu/tagHelper @@ -29,7 +29,7 @@ diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/find-target-context-menu/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/find-target-context-menu/tagHelper index 0604636e02..68674f949d 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/find-target-context-menu/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/find-target-context-menu/tagHelper @@ -4,7 +4,7 @@ + \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/prevent-paste/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/prevent-paste/tagHelper index 93746b23ae..2f52e9dbf9 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/prevent-paste/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/prevent-paste/tagHelper @@ -15,9 +15,6 @@ \ No newline at end of file diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/scrolling/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/scrolling/tagHelper index 352cb5f1d4..bc48a316df 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/scrolling/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/scrolling/tagHelper @@ -1,7 +1,7 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/show-hide/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/show-hide/tagHelper index fb467b1f0e..d57508ff4a 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/show-hide/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/show-hide/tagHelper @@ -10,8 +10,8 @@ - - + + diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/undo-redo/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/undo-redo/tagHelper index 18f2b84fbc..c2fd93a765 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/undo-redo/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/undo-redo/tagHelper @@ -1,18 +1,18 @@ + - + + + - - - \ No newline at end of file diff --git a/ej2-asp-core-mvc/spreadsheet/notes.md b/ej2-asp-core-mvc/spreadsheet/notes.md index da1a529d68..23fb4a3bec 100644 --- a/ej2-asp-core-mvc/spreadsheet/notes.md +++ b/ej2-asp-core-mvc/spreadsheet/notes.md @@ -74,6 +74,7 @@ In the active worksheet, right-click on the desired cell containing the note tha The Spreadsheet data, including notes, can be saved and exported as an Excel document by selecting **File > Save As** in the ribbon menu. Exporting worksheets with notes is supported in Excel file formats such as MS Excel (.xlsx) and MS Excel 97-2003 (.xls). > When exporting the Spreadsheet to file formats such as Comma Separated Values (.csv), Excel Macro-Enabled Workbook (.xlsm), Excel Binary Workbook (.xlsb), and PDF Document (.pdf), the notes will not be available. + ## Disabling notes To disable the note functionality, you need to set the [`enableNotes`](https://help.syncfusion.com/cr/aspnetcore-js2/Syncfusion.EJ2.Spreadsheet.Spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_EnableNotes) property to **false**. After disabling, the notes in the document will not be shown when opened in the Spreadsheet. The **"Add Note"** option will not be shown in the context menu. The keyboard shortcuts for the note functionality will not work. From 4302abb409c51aea387935d7f818ea486e1e594c Mon Sep 17 00:00:00 2001 From: JanakiramanSakthivel Date: Thu, 2 Jan 2025 11:03:25 +0530 Subject: [PATCH 3/5] 930405: Checked and corrected the Spreadsheet code snippets for ASP .NET Core documentation. --- .../code-snippet/spreadsheet/base-64-string/tagHelper | 2 +- .../code-snippet/spreadsheet/open-header/tagHelper | 8 ++------ .../code-snippet/spreadsheet/open-uploader/tagHelper | 4 +++- ej2-asp-core-mvc/code-snippet/spreadsheet/open/tagHelper | 2 +- .../code-snippet/spreadsheet/pdf-orientation/tagHelper | 2 +- .../code-snippet/spreadsheet/save-as-blob/tagHelper | 2 +- ej2-asp-core-mvc/code-snippet/spreadsheet/save/tagHelper | 2 +- 7 files changed, 10 insertions(+), 12 deletions(-) diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/base-64-string/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/base-64-string/tagHelper index b976f88631..40bfd2d7d0 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/base-64-string/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/base-64-string/tagHelper @@ -44,7 +44,7 @@ document.getElementById("exportBtn").addEventListener('click', function () { var spreadsheetObj = document.getElementById("spreadsheet").ej2_instances[0]; spreadsheetObj.save({ - url: 'Home/Save', + url: 'https://localhost:{{port number}}/Home/Save', fileName: 'Worksheet', saveType: 'Xlsx', }); // Specifies the save URL, file name, file type need to be saved. diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/open-header/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/open-header/tagHelper index ad8c2cde94..d570847e2f 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/open-header/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/open-header/tagHelper @@ -4,10 +4,6 @@ diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/open-uploader/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/open-uploader/tagHelper index 874bbb72cc..c31895ab37 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/open-uploader/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/open-uploader/tagHelper @@ -1,6 +1,8 @@ @using Syncfusion.EJ2 @{ - var asyncSettings = new Syncfusion.EJ2.Inputs.UploaderAsyncSettings { SaveUrl = @Url.Content("Home/Save"), RemoveUrl = @Url.Content("Home/Remove") }; +var asyncSettings = new Syncfusion.EJ2.Inputs.UploaderAsyncSettings { SaveUrl = +"https://services.syncfusion.com/aspnet/production/api/FileUploader/Save", RemoveUrl = +"https://services.syncfusion.com/aspnet/production/api/FileUploader/Remove" }; } diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/open/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/open/tagHelper index 205f43206c..8815538bef 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/open/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/open/tagHelper @@ -1,4 +1,4 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/pdf-orientation/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/pdf-orientation/tagHelper index 7baf6eae2e..975076abcd 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/pdf-orientation/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/pdf-orientation/tagHelper @@ -1,4 +1,4 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/save-as-blob/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/save-as-blob/tagHelper index 6094f91cdf..46d5f507bd 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/save-as-blob/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/save-as-blob/tagHelper @@ -1,4 +1,4 @@ - + diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/save/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/save/tagHelper index e4cc88739c..7ba58eac2b 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/save/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/save/tagHelper @@ -1,3 +1,3 @@ - + \ No newline at end of file From 93efbcc9e6f2ed3e434c04899f4f2087e42af1d0 Mon Sep 17 00:00:00 2001 From: JanakiramanSakthivel Date: Fri, 3 Jan 2025 09:34:47 +0530 Subject: [PATCH 4/5] 930405: Checked and corrected the Spreadsheet code snippets for ASP .NET Core documentation. --- .../code-snippet/spreadsheet/globalization-cs1/tagHelper | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/globalization-cs1/tagHelper b/ej2-asp-core-mvc/code-snippet/spreadsheet/globalization-cs1/tagHelper index 07f7c41218..87b8051e16 100644 --- a/ej2-asp-core-mvc/code-snippet/spreadsheet/globalization-cs1/tagHelper +++ b/ej2-asp-core-mvc/code-snippet/spreadsheet/globalization-cs1/tagHelper @@ -30,11 +30,16 @@ function loadCultureFiles (localeOptions) { for (var locale = 0; locale < localeOptions.length; locale++) { var files = ['ca-gregorian', 'currencies', 'numbers', 'timeZoneNames', 'numberingSystems']; + var loader = ej.base.loadCldr; var loadCulture = function (fileName) { - var url = './cldr-data/' + (fileName === 'numberingSystems' ? '' : (localeOptions[locale] + '/')) + fileName + '.json'; + var val; + var url = location.origin + '/../cldr-data/' + (fileName === 'numberingSystems' ? 'supplemental/' : ('main/' + (localeOptions[locale] + '/'))) + fileName + '.json'; var ajax = new ej.base.Ajax(url, 'GET', false); - ajax.onSuccess = (value) => ej.base.loadCldr(JSON.parse(value)); + ajax.onSuccess = function (value) { + val = value; + }; ajax.send(); + loader(JSON.parse(val)); }; for (var prop = 0; prop < files.length; prop++) { loadCulture(files[prop]); From a23b71cb381c188b2739378c522788634138ee82 Mon Sep 17 00:00:00 2001 From: JanakiramanSakthivel Date: Fri, 3 Jan 2025 14:17:00 +0530 Subject: [PATCH 5/5] 930405: Checked and corrected the Spreadsheet code snippets for ASP .NET Core documentation. --- .../{EJ2_ASP.NETCORE => Core}/headerController.cs | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ej2-asp-core-mvc/code-snippet/spreadsheet/header-gridlines/{EJ2_ASP.NETCORE => Core}/headerController.cs (100%) diff --git a/ej2-asp-core-mvc/code-snippet/spreadsheet/header-gridlines/EJ2_ASP.NETCORE/headerController.cs b/ej2-asp-core-mvc/code-snippet/spreadsheet/header-gridlines/Core/headerController.cs similarity index 100% rename from ej2-asp-core-mvc/code-snippet/spreadsheet/header-gridlines/EJ2_ASP.NETCORE/headerController.cs rename to ej2-asp-core-mvc/code-snippet/spreadsheet/header-gridlines/Core/headerController.cs