Extend from $.fn.datagrid.defaults. Override defaults with $.fn.propertygrid.defaults.
Create a propertygrid
Append a new row to propertygrid.
The propertygrid extend from datagrid.
It's row data format is same as datagrid.
As a property row, the following fields are required:
name: the field name.
value: the field value to be edited.
group: the group field value.
editor: the editor while editing property value.
Row data example:
The properties extend from datagrid, below is the added properties for propertygrid.
Name | Type | Description | Default |
---|---|---|---|
showGroup | boolean | Defines if to show property group. | false |
groupField | string | Defines the group field name. | group |
groupFormatter | function(group,rows) |
Defines how to format the group value. This function takes following parameters: group: the group field value. rows: the rows belong to its group. |
The methods extend from datagrid, below is the added methods for propertygrid.
Name | Parameter | Description |
---|---|---|
expandGroup | groupIndex | Expand specified group. |
collapseGroup | groupIndex | Collapse specified group. |