Realization of ideas: a collection of registered sub-function rendering form fields before the event, the bulk delete button hidden away.
- Find a table object
- Operation column objects found actioncolumn
- The operation of the column items actioncolumn replace
-
function(field){
-
var grid=field.grid;
-
was actionColumn = null;
-
for(var i=0;i< p="">
-
if(grid.columns[i].xtype=='actioncolumn'){
-
actionColumn=grid.columns[i];
-
break;
-
}
-
}
-
if(actionColumn){
-
var items=actionColumn.items;
-
var newItems=new Array();
-
Ext.each(items,function(item){
-
if (item.tooltip! = 'mass delete') {
-
newItems.push(item);
-
}
-
})
-
actionColumn.items=newItems;
-
}
- }
-
Join JEPaaS technical exchange group, to learn more