I have a web service that returns something similar to this
In a data source, I bind to RowSet.Rows, but I need the Key field to be part of the rows in order to enable CRUD operations.
ideally, I would like to specify something like this:
Is this possible in some way?
{ "RowSet": {
"Key": "7256bd2d-879f-494b-a7c0-f0d6ed2eba84",
"Rows": [
{ "RowNum": 1, "Name": "Fred", "Value": 123 },
{ "RowNum": 2, "Name": "Mary", "Value": 323 },
{ "RowNum": 3, "Name": "John", "Value": 732 },
{ "RowNum": 4, "Name": "Sue", "Value": 895 }
]
}
}
In a data source, I bind to RowSet.Rows, but I need the Key field to be part of the rows in order to enable CRUD operations.
ideally, I would like to specify something like this:
schema: {
data: "RowSet.Rows",
model: {
id: "RowNum",
fields: {
Key: { editable: false, type: "string", path="..\Key" or path="this.parent().Key" }
RowNum: { editable: false, type: "number" },
Name: { editable: true, type: "string" },
Value: { editable: true, type: "number" },
}
}
Is this possible in some way?