Monday, February 25, 2013

Disabling editing in a property grid

While using a property grid, for some reason you may need to disable the editing of the property grid. You can add a beforeedit listener and return false to achieve this:

new Ext.grid.PropertyGrid({
   ...
   listeners: {
      'beforeedit':{
         fn:function(){
            return false;
         }
      }// end beforeedit
   },//end listeners
   ...
});