Skip to content

Commit 2266494

Browse files
committed
polished
1 parent 4a48da4 commit 2266494

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

knowledge-base/adding-combobox-to-excel-file-radspreadprocessing.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Explains how to add a combo box with specific options to an Excel f
44
type: how-to
55
page_title: Adding a Dropdown in Excel Using RadSpreadProcessing
66
slug: adding-combobox-to-excel-file-radspreadprocessing
7-
tags: radspreadprocessing, combobox, excel, listdata, datavalidation, document-processing
7+
tags: spread, processing, combobox, excel, listdata, validation, document, dropdown, comma, delimiter
88
res_type: kb
99
ticketid: 1689410
1010
---
@@ -17,16 +17,15 @@ ticketid: 1689410
1717

1818
## Description
1919

20-
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.
21-
22-
This knowledge base article also answers the following questions:
23-
- How can I add comboboxes with options to Excel files using RadSpreadProcessing?
24-
- How do I handle special characters in combobox options in an Excel file?
25-
- How can I use cell ranges for dropdown validation in RadSpreadProcessing?
20+
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.
2621

2722
## Solution
2823

29-
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:
24+
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.
25+
26+
![Combobox with Specific Options ><](images/adding-combobox-to-excel-file-radspreadprocessing.png)
27+
28+
Below is the sample code:
3029

3130
```csharp
3231
// Create a workbook
@@ -69,12 +68,11 @@ Process.Start(new ProcessStartInfo() { FileName = outputFilePath, UseShellExecut
6968
```
7069

7170
### Key Points
72-
- Use a cell range to define options if the values include commas or other special characters.
71+
- Use a cell range to define options if the values include commas or other special characters that are not allowed out-of-the-box.
7372
- The `Argument1` property supports referencing a range of cells (e.g., `=A1:D1`) as dropdown options.
7473

7574
## See Also
7675

77-
- [RadSpreadProcessing Overview](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/overview)
78-
- [List Rule Data Validation](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/data-validation#list-rule)
79-
- [Setting the Culture](https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/setting-the-culture)
80-
- [RadSpreadProcessing API Reference](https://docs.telerik.com/devtools/document-processing/api/telerik.windows.documents.spreadsheet.model)
76+
- [RadSpreadProcessing Overview]({%slug radspreadprocessing-overview%})
77+
- [List Rule Data Validation]({%slug%}#list-rule)
78+
- [Setting the Culture]({%slug radspreadprocessing-features-setting-the-culture%})
7.74 KB
Loading

libraries/radspreadprocessing/features/data-validation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,4 +376,5 @@ __Example 11__ demonstrates how to evaluate a rule using the __Evaluate()__ meth
376376
## See Also
377377

378378
* [Protection]({%slug radspreadprocessing-features-protection-workbook%})
379-
* [Formulas]({%slug radspreadprocessing-features-formulas-general-information%})
379+
* [Formulas]({%slug radspreadprocessing-features-formulas-general-information%})
380+
* [Adding a ComboBox to an Excel File Using RadSpreadProcessing]({%slug adding-combobox-to-excel-file-radspreadprocessing%})

0 commit comments

Comments
 (0)