Skip to content

Commit 067bb7e

Browse files
Merge pull request #4420 from Syncfusion-Content/hotfix/hotfix-v30.1.37
DOCINFRA-2341_merged_using_automation
2 parents 08c86d4 + 7a547cf commit 067bb7e

File tree

3 files changed

+24
-11
lines changed

3 files changed

+24
-11
lines changed

ej2-asp-core-mvc/code-snippet/grid/edit/inline-single/razor

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,21 @@
66
col.Field("ShipName").HeaderText("Ship Name").Width("150").ValidationRules(new { required = "true"}).Add();
77
col.Field("ShipCountry").HeaderText("Ship Country").EditType("dropdownedit").Width("150").ValidationRules(new { required = "true"}).Add();
88
}).AllowPaging().Load("load").EditSettings(edit => { edit.AllowAdding(true).AllowEditing(true).AllowDeleting(true).Mode(Syncfusion.EJ2.Grids.EditMode.Normal); }).Toolbar(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" }).Render()
9+
910
<script>
1011
function load()
1112
{
1213
var grid = document.getElementById("grid").ej2_instances[0];
1314
grid.element.addEventListener('mouseup', (event) => {
14-
if (event.target.classList.contains("e-rowcell")) {
15-
if (grid.isEdit)
16-
grid.endEdit();
15+
if (event.target.classList.contains("e-rowcell")) {
16+
if (grid.isEdit)
17+
{
18+
grid.endEdit();
19+
}
1720
let index= parseInt((event.target).getAttribute("Index"));
1821
grid.selectRow(index);
1922
grid.startEdit();
20-
};
23+
}
2124
});
2225
}
2326
</script>

ej2-asp-core-mvc/code-snippet/grid/edit/inline-single/tagHelper

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
{
1414
var grid = document.getElementById("grid").ej2_instances[0];
1515
grid.element.addEventListener('mouseup', (event) => {
16-
if (event.target.classList.contains("e-rowcell")) {
17-
if (grid.isEdit)
18-
grid.endEdit();
16+
if (event.target.classList.contains("e-rowcell")) {
17+
if (grid.isEdit)
18+
{
19+
grid.endEdit();
20+
}
1921
let index= parseInt((event.target).getAttribute("Index"));
2022
grid.selectRow(index);
2123
grid.startEdit();
22-
};
24+
}
2325
});
2426
}
2527
</script>

ej2-asp-core-mvc/document-editor/text-format.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,14 @@ You can make a subscript or superscript text as normal using the following code.
106106
documenteditor.selection.characterFormat.baselineAlignment='Normal';
107107
```
108108

109+
## Change case
110+
111+
You can apply different case formatting based on the selected text. Refer to the following sample code.
112+
113+
```typescript
114+
documenteditor.editor.changeCase('Uppercase'|'Lowercase'|'SentenceCase'|'ToggleCase'|'CapitalizeEachWord');
115+
```
116+
109117
## Size
110118

111119
The size of selected text can be get or set using the following code.
@@ -182,6 +190,6 @@ documenteditor.selection.characterFormat.highlightColor= '#FFC0CB';
182190

183191
## See Also
184192

185-
* [Feature modules](../document-editor/feature-module/)
186-
* [Font dialog](../document-editor/dialog/#font-dialog)
187-
* [Keyboard shortcuts](../document-editor/keyboard-shortcut/)
193+
* [Feature modules](../document-editor/feature-module)
194+
* [Font dialog](../document-editor/dialog#font-dialog)
195+
* [Keyboard shortcuts](../document-editor/keyboard-shortcut)

0 commit comments

Comments
 (0)