This content has been marked as final. Show 5 replies
dataField can only take a string, not an expression.
b.@att is an expression.
Easiest fix is a labelFunction()
What is the corresponding custom editing function? I need to modify the expression values as well.
I do not understand, "corresponding custom editing function". What do you want to do?
If the DataGrid is editable, it should assign values to b.@att. Since dataField only takes a string and not an expression, it doesn't update b.@att. How can I update b.@att then?
There are several ways to handle this. One is to create a custom Value Object with a property that gets and sets the undelying nested value.
Another is to intercept the editing handlers and manipulate(update) the data as desired. See the docs for the editing events, I don't recall the precise names, something like itemEditEnd.