Skip to content

Commit bfce70d

Browse files
committed
1012637: updated How to session for react spreadsheet in ug documentation
1 parent 7b407b1 commit bfce70d

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
layout: post
3+
title: Dynamic cell template with dropdowns — React Spreadsheet | Syncfusion
4+
description: Rendering a dropdown inside a cell using a dynamic cell template in Syncfusion React Spreadsheet component of Syncfusion Essential JS 2 and more.
5+
control: Spreadsheet
6+
platform: document-processing
7+
documentation: ug
8+
---
9+
10+
# Create Dynamic Cell Templates with Dropdowns in React Spreadsheet
11+
12+
Templates can be added directly to cells or initialized for a range of cells. A custom Ribbon tab can also be added so users can insert a dropdown into the selected cell.
13+
14+
When the user picks an item, the chosen value is written back into the sheet, keeping the cell updated. This keeps the dropdown feature simple, as only the template name is stored and the control is created during rendering. You can also add your own custom template to display any UI element you need inside the cell.
15+
16+
The following code example shows how to add a dropdown from a custom template:
17+
18+
{% tabs %}
19+
{% highlight js tabtitle="app.jsx" %}
20+
{% include code-snippet/spreadsheet/react/dynamic-cell-template-cs1/app/app.jsx %}
21+
{% endhighlight %}
22+
{% highlight ts tabtitle="app.tsx" %}
23+
{% include code-snippet/spreadsheet/react/dynamic-cell-template-cs1/app/app.tsx %}
24+
{% endhighlight %}
25+
{% endtabs %}
26+
27+
{% previewsample "/document-processing/code-snippet/spreadsheet/react/dynamic-cell-template-cs1" %}

0 commit comments

Comments
 (0)