Skip to content

Commit 593c8a1

Browse files
committed
Sync with Kendo UI Professional
1 parent 0e3aa97 commit 593c8a1

File tree

11 files changed

+481
-215
lines changed

11 files changed

+481
-215
lines changed

docs-aspnet/_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -714,13 +714,13 @@ navigation:
714714
baseurl: /aspnet-core
715715

716716
## The Kendo UI version used
717-
cdnVersion: "2024.3.1015"
717+
cdnVersion: "2024.4.1112"
718718

719719
## The themes CDN used
720-
themesCdnVersion: "9.0.0"
720+
themesCdnVersion: "10.0.0"
721721

722722
## The MVC Core version used
723-
mvcCoreVersion: "2024.3.1015"
723+
mvcCoreVersion: "2024.4.1112"
724724

725725
productCode: UIASPCORE
726726

docs/_config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,13 +715,13 @@ navigation:
715715
baseurl: /kendo-ui
716716

717717
## The Kendo UI version used
718-
cdnVersion: "2024.3.1015"
718+
cdnVersion: "2024.4.1112"
719719

720720
## The themes CDN used
721-
themesCdnVersion: "9.0.0"
721+
themesCdnVersion: "10.0.0"
722722

723723
## The MVC Core version used
724-
mvcCoreVersion: "2024.3.1015"
724+
mvcCoreVersion: "2024.4.1112"
725725

726726
## Progress NPM Registry
727727
registry_url: 'https://registry.npm.telerik.com/'

docs/api/javascript/ui/spreadsheet.md

Lines changed: 131 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ If set to `true`, sets the cell font to underline.
6969

7070
If set to `true`, sets the cell wrap.
7171

72-
### headerHeight `Number` *(default: 20)*
72+
### headerHeight `Number` *(default: 30)*
7373

7474
The height of the header row in pixels.
7575

@@ -735,7 +735,7 @@ Indicates whether to center the content vertically. For more information, refer
735735
spreadsheet.saveAsPDF();
736736
</script>
737737

738-
### rowHeight `Number` *(default: 20)*
738+
### rowHeight `Number` *(default: 30)*
739739

740740
The default row height in pixels.
741741

@@ -1038,7 +1038,7 @@ The format of the cell text. For more information, refer to the article on [crea
10381038
<script>
10391039
$("#spreadsheet").kendoSpreadsheet({
10401040
sheets: [{
1041-
name: "Order",
1041+
name: "Order",
10421042
rows: [{
10431043
cells: [{
10441044
value: 12.39, format: "$#,##0.00"
@@ -1054,7 +1054,7 @@ The cell formula without the leading equals sign, for example, `A1 * 10`.
10541054

10551055
### sheets.rows.cells.html `Boolean`
10561056

1057-
If set to `true`, renders the cell value as HTML.
1057+
If set to `true`, renders the cell value as HTML.
10581058
It is important to sanitize the value of the cell on the server for passing safe html because there is no client-side sanitizing. When editing a cell the new value can be checked and prevented in the client `changing` event.
10591059

10601060
### sheets.rows.cells.index `Number`
@@ -1392,26 +1392,74 @@ Apart from the built-in tools, the Spreadsheet Home, Insert and Data ToolBars fu
13921392
});
13931393
</script>
13941394

1395+
### toolbar.file `Boolean|Array` *(default: true)*
1396+
1397+
A Boolean value which indicates if the **File** tab or a collection of tools that will be shown in the **Home** tab will be displayed.
1398+
1399+
The following list indicates the available tools.
1400+
1401+
* `open`
1402+
* `exportAs`
1403+
1404+
#### Example - customizing the File tab
1405+
1406+
<div id="spreadsheet"></div>
1407+
<script>
1408+
$("#spreadsheet").kendoSpreadsheet({
1409+
toolbar: {
1410+
file: ["exportAs"]
1411+
}
1412+
});
1413+
</script>
1414+
1415+
#### Example - disabling the File tab
1416+
1417+
<div id="spreadsheet"></div>
1418+
<script>
1419+
$("#spreadsheet").kendoSpreadsheet({
1420+
toolbar: {
1421+
file: false
1422+
}
1423+
});
1424+
</script>
1425+
1426+
#### Example - showing a custom tool
1427+
1428+
<div id="spreadsheet"></div>
1429+
<script>
1430+
$("#spreadsheet").kendoSpreadsheet({
1431+
toolbar: {
1432+
file: [
1433+
// for all available options, see the toolbar items configuration
1434+
// https://docs.telerik.com/kendo-ui/api/javascript/ui/toolbar/configuration/items
1435+
{
1436+
type: "button",
1437+
text: "Custom",
1438+
showText: "both",
1439+
icon: "k-icon k-i-cog",
1440+
click: function() {
1441+
window.alert("custom tool");
1442+
}
1443+
}
1444+
]
1445+
}
1446+
});
1447+
</script>
1448+
13951449
### toolbar.home `Boolean|Array` *(default: true)*
13961450

13971451
A Boolean value which indicates if the **Home** tab or a collection of tools that will be shown in the **Home** tab will be displayed.
13981452

13991453
The following list indicates the available tools. The tools which are part of a tool group are defined as an array. For example `["bold", "italic", "underline"]`.
14001454

1401-
* `open`
1402-
* `exportAs`
1455+
* [`undo`, `redo`]
14031456
* [`cut`, `copy`, `paste`]
14041457
* [`bold`, `italic`, `underline`]
14051458
* `backgroundColor`, `textColor`
14061459
* `borders`
14071460
* `fontSize`, `fontFamily`
14081461
* `alignment`
14091462
* `textWrap`
1410-
* [`formatDecreaseDecimal`, `formatIncreaseDecimal`]
1411-
* `format`
1412-
* `merge`
1413-
* `freeze`
1414-
* `filter`
14151463

14161464
#### Example - customizing the Home tab
14171465

@@ -1464,6 +1512,9 @@ A Boolean value which indicates if the **Insert** tab or a collection of tools t
14641512

14651513
The following list indicates the available tools. The tools which are part of a tool group are defined as an array. For example `["deleteColumn", "deleteRow"]`.
14661514

1515+
* `insertComment`
1516+
* `hyperlink`
1517+
* `insertImage`
14671518
* [ `addColumnLeft`, `addColumnRight`, `addRowBelow`, `addRowAbove` ]
14681519
* [ `deleteColumn`, `deleteRow` ]
14691520

@@ -1489,6 +1540,38 @@ The following list indicates the available tools. The tools which are part of a
14891540
});
14901541
</script>
14911542

1543+
### toolbar.format `Boolean|Array` *(default: true)*
1544+
1545+
A Boolean value which indicates if the **Format** tab or a collection of tools that will be shown in the **Format** tab will be displayed.
1546+
1547+
The following list indicates the available tools
1548+
1549+
* `format`
1550+
* `formatDecreaseDecimal`
1551+
* `formatIncreaseDecimal`
1552+
1553+
#### Example - customizing the **Format** tab
1554+
1555+
<div id="spreadsheet"></div>
1556+
<script>
1557+
$("#spreadsheet").kendoSpreadsheet({
1558+
toolbar: {
1559+
format: [ ["formatDecreaseDecimal", "formatIncreaseDecimal"] ]
1560+
}
1561+
});
1562+
</script>
1563+
1564+
#### Example - disable format tab
1565+
1566+
<div id="spreadsheet"></div>
1567+
<script>
1568+
$("#spreadsheet").kendoSpreadsheet({
1569+
toolbar: {
1570+
format: false
1571+
}
1572+
});
1573+
</script>
1574+
14921575
### toolbar.data `Boolean|Array` *(default: true)*
14931576

14941577
A Boolean value which indicates if the **Data** tab or a collection of tools that will be shown in the **Data** tab will be displayed.
@@ -1521,6 +1604,38 @@ The available tools are:
15211604
});
15221605
</script>
15231606

1607+
### toolbar.view `Boolean|Array` *(default: true)*
1608+
1609+
A Boolean value which indicates if the **View** tab or a collection of tools that will be shown in the **View** tab will be displayed.
1610+
1611+
The following list indicates the available tools
1612+
1613+
* `freeze`
1614+
* `merge`
1615+
* `toggleGridlines`
1616+
1617+
#### Example - customizing the **View** tab
1618+
1619+
<div id="spreadsheet"></div>
1620+
<script>
1621+
$("#spreadsheet").kendoSpreadsheet({
1622+
toolbar: {
1623+
view: [ ["freeze", "toggleGridlines"] ]
1624+
}
1625+
});
1626+
</script>
1627+
1628+
#### Example - disable view tab
1629+
1630+
<div id="spreadsheet"></div>
1631+
<script>
1632+
$("#spreadsheet").kendoSpreadsheet({
1633+
toolbar: {
1634+
view: false
1635+
}
1636+
});
1637+
</script>
1638+
15241639
### useCultureDecimals `Boolean` *(default: false)*
15251640

15261641
If set to `true`, the Spreadsheet formula parser will obey the decimal separator of the current culture. If set to `false` (default), the decimal separator in formulas will always be the dot.
@@ -2478,8 +2593,8 @@ If invoked the changing will not be performed and no changes will be applied to
24782593
<div id="spreadsheet"></div>
24792594
<script>
24802595
$("#spreadsheet").kendoSpreadsheet({
2481-
sheets: [{
2482-
rows: [{
2596+
sheets: [{
2597+
rows: [{
24832598
cells: [
24842599
{ value: "First"},
24852600
{ value: "Second"},
@@ -2501,15 +2616,15 @@ If invoked the changing will not be performed and no changes will be applied to
25012616
console.log("The netered value is: " + e.data)
25022617
}
25032618
$("#spreadsheet").kendoSpreadsheet({
2504-
sheets: [{
2505-
rows: [{
2619+
sheets: [{
2620+
rows: [{
25062621
cells: [
25072622
{ value: "First"},
25082623
{ value: "Second"},
25092624
{ value: "Third"}
25102625
]
25112626
}]
2512-
}]
2627+
}]
25132628
});
25142629

25152630
var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");

0 commit comments

Comments
 (0)