Difference between revisions of "Editable Data Grid"
m |
|||
Line 34: | Line 34: | ||
|- | |- | ||
||headerText | ||headerText | ||
− | ||Column header text that is visible to users. | + | ||Column header text that is visible to users. Syncfusion Grid setting. |
|- | |- | ||
||type | ||type | ||
Line 46: | Line 46: | ||
|- | |- | ||
||dropdownoptions | ||dropdownoptions | ||
− | ||Options for the dropdown menu | + | ||Options for the dropdown menu. Only used when '''dropdown''' is checkbox. |
+ | {| class="wikitable" | ||
+ | !'''Property''' | ||
+ | ! '''Description''' | ||
+ | |- | ||
+ | ||label | ||
+ | ||Text visible to user | ||
+ | |- | ||
+ | ||value | ||
+ | ||Text to store to QPR Suite | ||
+ | |} | ||
+ | |||
|- | |- | ||
||trueValue | ||trueValue | ||
Line 53: | Line 64: | ||
||falseValue | ||falseValue | ||
||Attribute value corresponding to checkbox unchecked state. Used only used when '''type''' is checkbox. | ||Attribute value corresponding to checkbox unchecked state. Used only used when '''type''' is checkbox. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
||validationRules | ||validationRules | ||
Line 81: | Line 86: | ||
validationRules: { range: [0, 100] } | validationRules: { range: [0, 100] } | ||
</pre> | </pre> | ||
+ | |- | ||
+ | ||allowEditing | ||
+ | ||Syncfusion Grid setting. | ||
+ | |- | ||
+ | ||format | ||
+ | ||Syncfusion Grid setting. | ||
+ | |- | ||
+ | || | ||
+ | [other syncfusion settings] | ||
+ | || | ||
+ | https://help.syncfusion.com/api/js/ejgrid#members:columns | ||
|- | |- | ||
|} | |} |
Revision as of 09:24, 16 February 2018
Editable Data Grid is a table, that shows data from QPR Suite Web Service, and the data can also be edited. QPR Suite Web Service properties define which kind of data can be edited. Mainly QPR Metrics, QPR Portal action forms and QPR Suite user management data can be edited, but not QPR ProcessDesigner or QPR EnterpriceArchitect.
Data shown in the data grid is fetched using QPR Suite Web Service query, where each row is linked to one object and each column is linked to an attribute in the Web Service.
Note that, the editable data grid does not use datasets to fetch data.
Property | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
selectedRowVariable | Local context variable where currently selected row's object id of stored. Note that the selected row doesn't change, when the context variable is changed from somewhere else. | ||||||||||||||||||||||||||||||
query | Query parameter for the QPR Suite Web Service query to get the rows to the data grid. | ||||||||||||||||||||||||||||||
sortby | Sorting parameter for the QPR Suite Web Service query to get the rows to the data grid. | ||||||||||||||||||||||||||||||
queryoptions | Options parameter for the QPR Suite Web Service query to get the rows to the data grid. | ||||||||||||||||||||||||||||||
columns | Array of objects where each represent a column in the editable data grid.
|
{ "editSettings": { "allowAdding": true, "allowDeleting": true, "allowEditing": true, "allowEditing": "normal" }, "toolbarSettings": { "showToolbar": true, "toolbarItems": ["add", "edit", "delete", "update", "cancel"] } }
{ "columns": [ { allowEditing: false }, ] }
Batch editing is not supported by the editable data grid (editSettings: { allowEditing: "batch" })