The Editor exposes the capability of editing a data table as any other (X)HTML. The options that the table editing provides are:
As of the R3 2023 Release, the
Table Wizard
transmutes into two separateTable
andCell
properties popup elements.
To enable the table editing, add the TableEditing
tool to the configuration of the component:
@(Html.Kendo().Editor()
.Name("editor")
.HtmlAttributes(new { style = "height:440px", aria_label = "editor" })
.Tools(tools => tools.TableEditing())
)
Inserting a Table
To insert a new table by using the Table Wizard dialog:
Click the Create Table tool.
To open the dialog, click the Table Wizard button.
Configure the table you want to insert.
Click the Confirm button.
To quickly create a plain table, click the Create Table tool and choose the row and column dimensions.
Editing a TableTo modify an existing table or a table cell:
You can resize the table rows and columns by dragging the cell border with the mouse and without using the Table Wizard dialog.
The table and cell options that are available in the Table Wizard are displayed in the following three tabs:
The Editor provides a set of editing options through its Table, Cell, and Accessibility tabs.
Table TabThe Table tab provides the following options:
Width—Changes the width of the table (in pixels, em, or percent).
Height—Changes the height of the table (in pixels, em, or percent).
Columns—Defines the columns of the table.
Rows—Defines the rows of the table.
Cell Spacing—Specifies the space between the cells (cellspacing
attribute).
Cell Padding—Specifies the padding in the cells (cellpadding
attribute).
Independent Cell Paddings (available as of the 2024 Q2
release)—Specifies individual padding in the cells for top
, right
, bottom
and left
.
Alignment—Specifies the text alignment in the cells.
Background—Specifies the background color of the table.
CSS Class—Defines the class names for the table element (white space-separated).
ID—Defines the id of the table element.
Border—Defines the border size (in pixels only) and color.
Border Style—Defines the border style (none
, hidden
, dotted
, dashed
, solid
, double
, groove
, ridge
, inset
, outset
, initial
, and inherit
).
Collapse borders—Adds an inline style to that table element with the border-collapse: collapse
rule (border-collapse
property).
The Cell tab provides the following options:
Apply to all cells—Applies the changes to all cells in the table.
Width—Changes the width of the cell or cells (in pixels, em, or percent).
Height—Changes the height of the cell or cells (in pixels, em, or percent).
Cell Margin—Defines the margin of the cell or cells.
Cell Padding—Defines the padding of the cell or cells.
Independent Cell Paddings (available as of the 2024 Q2
release)—Specifies individual padding in the cells for top
, right
, bottom
and left
.
Alignment—Specifies the text alignment of the cell or cells.
Background—Specifies the background color of the cell or cells.
CSS Class—Defines class names for the cells (white space-separated).
ID—Defines the id of the cells.
Border—Defines the border size (in pixels only) and color of the cells.
Border Style—Defines the border style (none
, hidden
, dotted
, dashed
, solid
, double
, groove
, ridge
, inset
, outset
, initial
, and inherit
).
Wrap text—When unchecked, applies a white-space: nowrap
style to the cells (white-space
property).
As of the R3 2023 Release, the accessibility tab becomes a section in the
Advanced
tab in the newTable Properties
popup.
The Accessibility tab provides the following options:
<th>
cell elements instead of <td>
. When creating a new Table, those rows will be placed within a <thead>
element.<th>
elements instead of <td>
.caption
element for the table with the respective text.summary
attribute to the table using value defined. The summary
attribute has been deprecated in HTML5 and its use should be avoided when possible.scope
attribute to all header cells.headers
attribute with the appropriate value to all data (and header, if needed) cells.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4