PDA

View Full Version : Editorgrid put img in column and call form.



AndrejSk
1 Feb 2011, 5:15 AM
Hello
Can you help me:

I built custum column:


var editUser = {
header: "Edit",
dataIndex: 'ID',
width: 50,
align: 'center',
renderer: function(value, metaData, record, rowIndex, colIndex, store) {
return '<div style="text-align:center"><img src="user_edit.png" border="0" title="?????????????" "/></div>';
},
/*
var rec = grid.store.getAt(rowIndex);
Ext.getCmp("company-form").getForm().loadRecord(rec);
function(g, index, ev) {
var rec = g.store.getAt(index);
userForm.loadRecord(rec);
*/


};

How call form and put info about record.

vishalnnsingh
1 Feb 2011, 5:18 AM
Use action column for this purpose.

AndrejSk
1 Feb 2011, 5:24 AM
Use action column for this purpose.
I can`t version 3.1. ActionColumn in 3.3

Condor
1 Feb 2011, 5:28 AM
Look for the RowActions plugin in the User Extensions forum.