get/set value formulas for form elements and grid columns?

How can I get and set formula values for form elements and grid columns?
Like as: {view: “text”, onread: function(obj){return obj.x;}, onedit: function(row, value){…} }

Your example with hypothetic onread/onedit events seems unclear. Could you explain t this a bit more?