icon
Avatar
amirak17
Posts: 1
Hi,

I need to add an extra column to the ExtJS Grid. The grid is using Bancha with CakePHP.

The column and its data is added using custom code on the back-end side of CakePHP.

But when added as the last column as follows the column does not show up in the grid:

var orders = Ext.create('Ext.ModelGridForm', {
model: Bancha.getModel("Z2itOrder"),
modelName: 'Order',
id: 'orders',
gridFields: ['id', 'psigate_order_num', 'psigate_ref_num', 'date', 'user_id', 'total', 'cc_type', 'status', 'item_type', 'pin', 'reb_id', 'link_zoom_property1'],
renderFieldWith: [ {'from':'psigate_order_num', 'width': 130}, {'from':'psigate_ref_num', 'width': 130}, {'from': 'user_id', 'to': 'full_name', 'width': 150}, {'from': 'reb_id', 'to': 'reb_name', 'width': 150} ],
excludedGridFields: [],
excludedFormFields: ['hashcode', 'reb_name'],
textAreaFields: ['comments'],
recordDisplayFields: ['id'],
pageSize: 25,
sortOrder: 'DESC'
});

link_zoom_property1 is that last column, which shows up in the console.log if we say:
console.log(orders);

And that's the code there is on the client side.

Please help, I am new to Bancha with some familiarity of ExtJS, it was some other programmers in the past who used Bancha.

Thanks.
[Last edited by amirak17, 2015-01-20 15:50]
2015-01-20 15:29
icon Please login to reply or post!