View Full Version : Bancha add custom column to grid

20 Jan 2015, 7:39 AM

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:

And there is the code we have 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.


22 Jan 2015, 6:23 AM
That's a bit outside of the Sencha support scope and I don't have any experience with that myself.? I'll defer to the community's collective experience on this one.? Best of luck!