PDA

View Full Version : Transient Model Fields



hammonda
21 Nov 2011, 12:59 PM
Is there a way to mark certain fields in a model as transient. I want to define these fields on the model so they can be used correctly as dataIndex' in grids, along side with normal fields on the same model. However the data for the transient fields will be generated on the client and therefore should not be sent to the server when the model instance is saved.

tobiu
21 Nov 2011, 2:03 PM
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.Field

take a look at the persist config, this will at least stop fields from getting saved / send back to the server.

hammonda
22 Nov 2011, 2:09 AM
Great - Thanks.