From 4a48da426e02c13095d701badbdba815f1c85334 Mon Sep 17 00:00:00 2001 From: KB Bot Date: Mon, 9 Jun 2025 07:11:52 +0000 Subject: [PATCH 1/4] Added new kb article adding-combobox-to-excel-file-radspreadprocessing --- ...bobox-to-excel-file-radspreadprocessing.md | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md diff --git a/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md b/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md new file mode 100644 index 00000000..3c506b08 --- /dev/null +++ b/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md @@ -0,0 +1,80 @@ +--- +title: Adding a ComboBox to an Excel File Using RadSpreadProcessing +description: Explains how to add a combo box with specific options to an Excel file using RadSpreadProcessing. +type: how-to +page_title: Adding a Dropdown in Excel Using RadSpreadProcessing +slug: adding-combobox-to-excel-file-radspreadprocessing +tags: radspreadprocessing, combobox, excel, listdata, datavalidation, document-processing +res_type: kb +ticketid: 1689410 +--- + +## Environment + +| Version | Product | Author | +| ---- | ---- | ---- | +| 2025.2.520| RadSpreadProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| + +## Description + +I want to add a ComboBox with predefined options to an Excel file programmatically using RadSpreadProcessing. Additionally, I need the ComboBox to support special characters like commas within the options. + +This knowledge base article also answers the following questions: +- How can I add comboboxes with options to Excel files using RadSpreadProcessing? +- How do I handle special characters in combobox options in an Excel file? +- How can I use cell ranges for dropdown validation in RadSpreadProcessing? + +## Solution + +To add a ComboBox to an Excel file and handle special characters like commas within options, use the `ListDataValidationRule` with a cell range as the source for the validation. Below is the sample code: + +```csharp +// Create a workbook +Workbook workbook = new Workbook(); +Worksheet worksheet = workbook.Worksheets.Add(); + +// Define the ComboBox options in a cell range +worksheet.Cells[0, 0].SetValue("ABC, Inc."); +worksheet.Cells[0, 1].SetValue("123, Inc."); +worksheet.Cells[0, 2].SetValue("KEF, Inc."); +worksheet.Cells[0, 3].SetValue("HMS, Inc."); + +// Specify the cell where the ComboBox will be applied (e.g., A2) +CellIndex cellIndex = new CellIndex(1, 0); // A2 + +// Set up the validation rule with the cell range +ListDataValidationRuleContext context = new ListDataValidationRuleContext(worksheet, cellIndex); +context.InputMessageTitle = "Restricted input"; +context.InputMessageContent = "Please select an option from the dropdown."; +context.ErrorStyle = ErrorStyle.Stop; +context.ErrorAlertTitle = "Invalid Input"; +context.ErrorAlertContent = "The entered value is not valid. Allowed values are listed in the dropdown."; +context.Argument1 = "=A1:D1"; // Cell range containing the options +ListDataValidationRule rule = new ListDataValidationRule(context); + +// Apply the validation rule to the specified cell +worksheet.Cells[cellIndex].SetDataValidationRule(rule); + +// Save the workbook to a file +string outputFilePath = "ComboBoxExample.xlsx"; +File.Delete(outputFilePath); +using (FileStream stream = new FileStream(outputFilePath, FileMode.Create)) +{ + XlsxFormatProvider formatProvider = new XlsxFormatProvider(); + formatProvider.Export(workbook, stream, TimeSpan.FromSeconds(60)); +} + +// Open the generated file +Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecute = true }); +``` + +### Key Points +- Use a cell range to define options if the values include commas or other special characters. +- The `Argument1` property supports referencing a range of cells (e.g., `=A1:D1`) as dropdown options. + +## See Also + +- [RadSpreadProcessing Overview](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/overview) +- [List Rule Data Validation](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/data-validation#list-rule) +- [Setting the Culture](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/setting-the-culture) +- [RadSpreadProcessing API Reference](https://docs.telerik.com/devtools/document-processing/api/telerik.windows.documents.spreadsheet.model) From 22664940fd5a9709a4318b70b3523b94045f375e Mon Sep 17 00:00:00 2001 From: Desislava Yordanova Date: Wed, 18 Jun 2025 13:42:12 +0300 Subject: [PATCH 2/4] polished --- ...bobox-to-excel-file-radspreadprocessing.md | 24 ++++++++---------- ...obox-to-excel-file-radspreadprocessing.png | Bin 0 -> 7929 bytes .../features/data-validation.md | 3 ++- 3 files changed, 13 insertions(+), 14 deletions(-) create mode 100644 knowledge-base/images/adding-combobox-to-excel-file-radspreadprocessing.png diff --git a/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md b/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md index 3c506b08..53349125 100644 --- a/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md +++ b/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md @@ -4,7 +4,7 @@ description: Explains how to add a combo box with specific options to an Excel f type: how-to page_title: Adding a Dropdown in Excel Using RadSpreadProcessing slug: adding-combobox-to-excel-file-radspreadprocessing -tags: radspreadprocessing, combobox, excel, listdata, datavalidation, document-processing +tags: spread, processing, combobox, excel, listdata, validation, document, dropdown, comma, delimiter res_type: kb ticketid: 1689410 --- @@ -17,16 +17,15 @@ ticketid: 1689410 ## Description -I want to add a ComboBox with predefined options to an Excel file programmatically using RadSpreadProcessing. Additionally, I need the ComboBox to support special characters like commas within the options. - -This knowledge base article also answers the following questions: -- How can I add comboboxes with options to Excel files using RadSpreadProcessing? -- How do I handle special characters in combobox options in an Excel file? -- How can I use cell ranges for dropdown validation in RadSpreadProcessing? +Learn how to add a ComboBox with predefined options to an Excel file programmatically using RadSpreadProcessing. Additionally, the ComboBox should support special characters like commas (or another delimiter) within the options. ## Solution -To add a ComboBox to an Excel file and handle special characters like commas within options, use the `ListDataValidationRule` with a cell range as the source for the validation. Below is the sample code: +To add a ComboBox to an Excel file and handle special characters like commas within options, use the [ListDataValidationRule]({%slug radspreadprocessing-features-data-validation%}) with a cell range as the source for the validation. + +![Combobox with Specific Options ><](images/adding-combobox-to-excel-file-radspreadprocessing.png) + +Below is the sample code: ```csharp // Create a workbook @@ -69,12 +68,11 @@ Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecut ``` ### Key Points -- Use a cell range to define options if the values include commas or other special characters. +- Use a cell range to define options if the values include commas or other special characters that are not allowed out-of-the-box. - The `Argument1` property supports referencing a range of cells (e.g., `=A1:D1`) as dropdown options. ## See Also -- [RadSpreadProcessing Overview](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/overview) -- [List Rule Data Validation](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/data-validation#list-rule) -- [Setting the Culture](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/setting-the-culture) -- [RadSpreadProcessing API Reference](https://docs.telerik.com/devtools/document-processing/api/telerik.windows.documents.spreadsheet.model) +- [RadSpreadProcessing Overview]({%slug radspreadprocessing-overview%}) +- [List Rule Data Validation]({%slug%}#list-rule) +- [Setting the Culture]({%slug radspreadprocessing-features-setting-the-culture%}) diff --git a/knowledge-base/images/adding-combobox-to-excel-file-radspreadprocessing.png b/knowledge-base/images/adding-combobox-to-excel-file-radspreadprocessing.png new file mode 100644 index 0000000000000000000000000000000000000000..48c64b6c2e38fc1fe8f6e22b4ee2e54dc2b248ec GIT binary patch literal 7929 zcmZ{JXH=8j(slx&gCru-6hZ_NkwXjKI6~%OfxS!#Ws=0cX6sQU?LM7 zJMd*-Ag)<%)gnYC2u@-*An=rEp@oy3ohBxP++1Z^yh@y+`X6$N!-sK)duN*sjnDf& zEUoXZ`}H-Pob~!H`5msGRW12`aOvIru;F#y6wZ@`O1G|o$SfbprPy~_3d0e2*N{|F zh}{gMI{sE?Z?KBp3^(DaxdKS&6S#b$M_a8`ZrJ#t(!5u5vX?2pi(m73LOe;*)kTK# zRNa^^Q?~#9dBB_6)#H{shW(j!cnRa^)zP6!nh6gUjF{teex?0nmWkiKo}%8ZudJhh z(U$m%8ynBACwv^X1K5COhlSPCz9{`pS@!PIj(R!^Dk z8I`-QkIex&!nLSs=3j5oXwu(8bEjMlw$ieHH2UG3-EDs9d0xG8C|y{{o)rH{oaADn znY8BT?a+Q-p453XdE-v8{f8BeQKmqz<&R;KE!@3AUgY3p*?@*a@q)tIO$L)Ei+znA z5}Aw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acsNmu`lc5yvlX#?-NJHFlJ3WP+?avL)R1Fi?Fn#NNs&or z`t3l-x$N_uYRZbJ(Lf^B4W6lqyFGA_6~!KKIU z*n_kxa_szNDm4+@LDtNKc7j)pcb1zH;ZmyHScXD0HEb=5R$(VjSe4NO#J0d!zI;&Tl*nwuCSz#2P!8zd0P zGR5M98za=-s2yu0OPa*H2*msi1oJEQJ<4t0OG%^TWw1bF_$CS61c5FQHfW6d)ZYf3 zw53i#3I(jj?k@t<6^6LpRSuLNCuX_yGWw}Ozdif+T^QybQ#@-D;YiZM%{z3XX5Mk(7MgdYS2k1ZAEa?9ZKapDq7%h^^D;D4Ls6(2uWt-H}7x&y&xO^k9$avX#n)MmdrSddsg0%!)XAVOaM?=T4Y z@)@Z)HT2KT`~N9$27{o?ugvuEBF6k>O1gpIv8?b*$e#(9c1o}?)C?d<>SUHabV2MB X56${9{opF$?`nXmq6VT+-W2_REeqE7 literal 0 HcmV?d00001 diff --git a/libraries/radspreadprocessing/features/data-validation.md b/libraries/radspreadprocessing/features/data-validation.md index c28d288c..abfadacb 100644 --- a/libraries/radspreadprocessing/features/data-validation.md +++ b/libraries/radspreadprocessing/features/data-validation.md @@ -376,4 +376,5 @@ __Example 11__ demonstrates how to evaluate a rule using the __Evaluate()__ meth ## See Also * [Protection]({%slug radspreadprocessing-features-protection-workbook%}) -* [Formulas]({%slug radspreadprocessing-features-formulas-general-information%}) \ No newline at end of file +* [Formulas]({%slug radspreadprocessing-features-formulas-general-information%}) +* [Adding a ComboBox to an Excel File Using RadSpreadProcessing]({%slug adding-combobox-to-excel-file-radspreadprocessing%}) \ No newline at end of file From 57bac9a29612aebd9f41c5c90132e8205d021e3e Mon Sep 17 00:00:00 2001 From: Desislava Yordanova Date: Wed, 18 Jun 2025 13:52:45 +0300 Subject: [PATCH 3/4] fixed slug --- .../adding-combobox-to-excel-file-radspreadprocessing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md b/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md index 53349125..6849fa1d 100644 --- a/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md +++ b/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md @@ -74,5 +74,5 @@ Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecut ## See Also - [RadSpreadProcessing Overview]({%slug radspreadprocessing-overview%}) -- [List Rule Data Validation]({%slug%}#list-rule) +- [List Rule Data Validation]({%slug radspreadprocessing-features-data-validation%}#list-rule) - [Setting the Culture]({%slug radspreadprocessing-features-setting-the-culture%}) From 48fe53fdd49dab205dca98d5054c34e3be2a38c6 Mon Sep 17 00:00:00 2001 From: Desislava Yordanova Date: Thu, 19 Jun 2025 08:49:04 +0300 Subject: [PATCH 4/4] addressed review --- ...g-combobox-to-excel-file-radspreadprocessing.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md b/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md index 6849fa1d..21e8546f 100644 --- a/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md +++ b/knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md @@ -1,8 +1,8 @@ --- -title: Adding a ComboBox to an Excel File Using RadSpreadProcessing +title: Adding a DropDown/ComboBox to an Excel File Using RadSpreadProcessing description: Explains how to add a combo box with specific options to an Excel file using RadSpreadProcessing. type: how-to -page_title: Adding a Dropdown in Excel Using RadSpreadProcessing +page_title: Adding a /ComboBox in Excel Using RadSpreadProcessing slug: adding-combobox-to-excel-file-radspreadprocessing tags: spread, processing, combobox, excel, listdata, validation, document, dropdown, comma, delimiter res_type: kb @@ -17,11 +17,15 @@ ticketid: 1689410 ## Description -Learn how to add a ComboBox with predefined options to an Excel file programmatically using RadSpreadProcessing. Additionally, the ComboBox should support special characters like commas (or another delimiter) within the options. +Learn how to add a ComboBox with predefined options to an Excel file programmatically using [RadSpreadProcessing]({%slug radspreadprocessing-overview%}). Additionally, the ComboBox should support special characters like commas (or another delimiter) within the options. ## Solution -To add a ComboBox to an Excel file and handle special characters like commas within options, use the [ListDataValidationRule]({%slug radspreadprocessing-features-data-validation%}) with a cell range as the source for the validation. +To add a DropDown/ComboBox to an Excel file and handle special characters like commas within options, use the [ListDataValidationRule]({%slug radspreadprocessing-features-data-validation%}) with a cell range as the source for the validation. Consider the following sample options: + +* Option 1, Inc. +* Option 2, Inc. +* Option 3, Inc. ![Combobox with Specific Options ><](images/adding-combobox-to-excel-file-radspreadprocessing.png) @@ -73,6 +77,6 @@ Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecut ## See Also -- [RadSpreadProcessing Overview]({%slug radspreadprocessing-overview%}) +- [RadSpreadProcessing Overview]({%slug radspreadprocessing-overview%}) - [List Rule Data Validation]({%slug radspreadprocessing-features-data-validation%}#list-rule) - [Setting the Culture]({%slug radspreadprocessing-features-setting-the-culture%})