I am creating a grid, and the object each row is bound to contains a complex object that I want to be able to edit and update. The object has a property that is just a number, and I want to be able to see/edit/update that number in the grid. I can make the number visible easily enough using a template, but does the grid know how to allow edits/updates to the original data source?
As an example, the object the row is bound to may look like:
So, I want to show "8.99" in the grid, which I can do by defining my columns like so:
But, will I be able to edit this value in the grid? And how will the grid know to update the Value property when I do the edit?
Thanks
As an example, the object the row is bound to may look like:
data = {
ListPrice: {
value: 8.99
}
}
So, I want to show "8.99" in the grid, which I can do by defining my columns like so:
columns: [
{
field:
'ListPrice'
,
title:
'List Price'
,
template:
'#= ListPrice.Value #'
}
]
But, will I be able to edit this value in the grid? And how will the grid know to update the Value property when I do the edit?
Thanks