Hi all,
I am using a computed value from a DataSource and displayed in a Grid column.
I discovered that the way to do this is by putting the function in the schema.model
schema: {
model: {
id:
"ID",
orderValue: function () {
// calculate a double value
return orderTotal;
},
And that I put it in my Gird with this ....
{ field: "orderValue()", title: "Order Total Value", width: "10&" },
But if I put a filter on that column, it seems to be assuming it's a string type.
I may be missing some config. Normally I would specify the type in the field def in the DataSource but, as seen above, in this case I am using a function (not a plain field def)
Any help would be great.
Many thanks.
Chris