Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9b02ace

Browse files
Merge branch 'EJMVC-5887' into 'hotfix/hotfix-v14.4.0.20'
EJMVC-5887 - MD Changes Formulas: 1) Included User defined function support Clipboard: 1) Used + operator for combination keys 2) changed and Ensured white space in last note Searching: 1) Given navigation for "findNext" and "findPrevious" methods 2) Removed the sentence "The following output is displayed the Go To dialog." and included caption for Go To Dialog. Scrolling: 1) Changed the sentence "To enable responsive, IsResponsive property in ScrollSettings should be true" as "To enable responsive, set IsResponsive property in ScrollSettings as true" See merge request !20
2 parents a6d82a0 + 05afc42 commit 9b02ace

File tree

5 files changed

+58
-8
lines changed

5 files changed

+58
-8
lines changed

‎aspnetmvc/Spreadsheet/Clipboard.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This function cuts the selected range values and make it available in clipboard.
1818

1919
You can do this by one of the following ways.
2020

21-
* Using "Ctrl-X" key.
21+
* Using "Ctrl + X" key.
2222
* Using Cut button of HOME tab in ribbon to perform cut operation.
2323
* Using Cut option in Context Menu.
2424
* Using [`cut`](https://help.syncfusion.com/api/js/ejspreadsheet#methods:xlclipboard-cut "cut") method.
@@ -29,7 +29,7 @@ This function copies the selected range values and make it available in clipboar
2929

3030
You can do this by one of the following ways.
3131

32-
* Using "Ctrl-C" key.
32+
* Using "Ctrl + C" key.
3333
* Using Copy button of HOME tab in ribbon to perform copy operation.
3434
* Using Copy option in Context Menu.
3535
* Using [`copy`](https://help.syncfusion.com/api/js/ejspreadsheet#methods:xlclipboard-copy "copy") method.
@@ -47,7 +47,7 @@ N> The default paste option is Paste Special. This is working only within the cu
4747

4848
You can do this by one of the following ways,
4949

50-
* Using "Ctrl-V" key.
50+
* Using "Ctrl + V" key.
5151
* Using Paste button of HOME tab in ribbon to perform paste operation.
5252
* Using Paste option in Context Menu.
5353
* Using [`paste`](https://help.syncfusion.com/api/js/ejspreadsheet#methods:xlclipboard-paste "paste") method.
@@ -108,4 +108,4 @@ The following output is displayed as a result of the above code example.
108108

109109
![](Clipboard_images/Clipboard_img1.png)
110110

111-
N> Similarly you can perform clipboard operations for shapes( Chart and Image).
111+
N> Similarly you can perform clipboard operations for shapes (Chart and Image).

‎aspnetmvc/Spreadsheet/Formulas.md‎

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,55 @@ N> 1. The list of supported formulas can be find in following [`link`](https://h
116116
N> 2. Constant values, cell references, formulas and named ranges can be passed as argument to formulas
117117
N> 3. Selection can be used to mention cell references within formula
118118

119+
## User Defined Functions
120+
121+
The list of formulas supported in Spreadsheet is sufficient for most of your calculations. If not, you can create and use your own function using user defined function option.
122+
123+
You can add your own function to Spreadsheet using [`addCustomFormula`](https://help.syncfusion.com/js/api/ejspreadsheet#methods:addcustomformula "addCustomFormula") method. The following code example describes the above behaviour,
124+
125+
{% highlight cshtml %}
126+
127+
@(Html.EJ().Spreadsheet<object>("Spreadsheet")
128+
.Sheets(sheet =>
129+
{
130+
sheet.Rows(rows =>
131+
{
132+
rows.Cells(cells =>
133+
{
134+
cells.Value("1").Add();
135+
}).Add();
136+
rows.Cells(cells =>
137+
{
138+
cells.Value("2").Add();
139+
}).Add();
140+
}).Add();
141+
})
142+
.ClientSideEvents(events => events.LoadComplete("loadComplete"))
143+
)
144+
145+
<script>
146+
function loadComplete() {
147+
this.addCustomFormula("CUSTOMTOTAL", "customTotal");
148+
this.XLEdit.updateCellValue({ rowIndex: 2, colIndex: 0 }, "=CUSTOMTOTAL(A1,A2,3)");
149+
}
150+
function customTotal(args) {
151+
var param1, param2, param3, value, xlObj = $('#Spreadsheet').data("ejSpreadsheet"),
152+
argument = xlObj.getValueFromFormulaArg(args);
153+
param1 = argument["arg1"];
154+
param2 = argument["arg2"];
155+
param3 = argument["arg3"];
156+
value = param1 * param2 + param3;
157+
return value;
158+
}
159+
</script>
160+
161+
{% endhighlight %}
162+
163+
The following output is displayed as a result of the above code example.
164+
![](Formulas_images/Formula_img5.png)
165+
166+
To remove user defined function from Spreadsheet use [`removeCustomFormula`](https://help.syncfusion.com/js/api/ejspreadsheet#methods:removecustomformula "removeCustomFormula") method.
167+
119168
## Named Ranges
120169

121170
To give descriptive name for cell reference or table and it can be used in formula. In Spreadsheet name can be added to cell reference in following ways,
16.4 KB
Loading[フレーム]

‎aspnetmvc/Spreadsheet/Scrolling.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The following output is displayed as a result of the above code example.
4141

4242
## Responsive
4343

44-
Spreadsheet has support for responsive behavior based on client browser's width and height. To enable responsive, `IsResponsive` property in `ScrollSettings` should be `true`. The three modes of responsive layout available in Spreadsheet based on client width are,
44+
Spreadsheet has support for responsive behavior based on client browser's width and height. To enable responsive, set `IsResponsive` property in `ScrollSettings` as `true`. The three modes of responsive layout available in Spreadsheet based on client width are,
4545

4646
* Mobile(<420px)
4747
* Tablet (420px to 617px)

‎aspnetmvc/Spreadsheet/Searching.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You have following options in Searching.
2323
This is used to search the contents of a cell. You can do this by one of the following ways,
2424

2525
* Using "Find" option in Find and Select button of OTHERS tab in ribbon to open the Find and Replace dialog.
26-
* Using `findNext`and `findPrevious` methods to search the given value in workbook.
26+
* Using [`findNext`](https://help.syncfusion.com/api/js/ejspreadsheet#methods:xlsearch-findnext "findNext") and [`findPrevious`](https://help.syncfusion.com/api/js/ejspreadsheet#methods:xlsearch-findprevious "findPrevious") methods to search the given value in workbook.
2727
* Using "Ctrl + F" key to open the Find and Replace dialog with Find tab enabled.
2828

2929
The following output is displayed as a result of Find and Replace dialog with Find tab enabled.
@@ -120,10 +120,11 @@ You can do this by one of the following ways,
120120
* Using "Go To" option in Find and Select button of OTHERS tab in ribbon to open the Go To dialog.
121121
* Using "Ctrl + G" key to open the Go To dialog.
122122

123-
The following output is displayed the Go To dialog.
124-
125123
![](Searching_images/Searching_img6.png)
126124

125+
Go To dialog
126+
{:.caption}
127+
127128
The following output is displayed as a result of goto to cell "F10".
128129

129130
![](Searching_images/Searching_img7.png)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /