Spreadsheet¶
Spreadsheet renders repeated data as an editable grid. XPath selects the collection context and ItemXPath selects the rows below that context; ItemXPath defaults to *. Changes made in the grid update the corresponding row nodes in the form data.
XML Fields¶
Rows¶
XPathselects the collection context.ItemXPathselects each row below that context; use*when every direct child is a row.Rulesapplies conditional behavior to the spreadsheet as a whole.
Columns and Editing¶
- Every
Columns/ColumnusesXPathto select a field in the current row.Typechooses the cell data type and editor;Aligncontrols display alignment.Labelprovides the column heading. DataSourcessupplies list choices for a column.Editorcontains optional controls used to edit a selected row; leave it empty when direct grid editing is sufficient.
Columns and Editors¶
Each Column has a label, a field XPath, alignment, and a Type: Text, Number, Date, DateTime, Time, or Boolean. The client chooses an editor and filter appropriate to that type. Date values use their date portion; DateTime editor values omit the timezone portion while editing, so choose the column type to match the data model.
The optional Editor control collection provides a row editor. The grid enables paging and supports range selection. It refreshes when its item collection changes or when its own bound node changes while visible.
Example¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | |