Share This Post

Code in this post can be obsolete, however, principles and theory may still apply.
My users are used to double-clicks to such a degree that they double-click everything, also buttons. This has created the problem with buttons that add records to grid as always two records were added. Here is handling:
this.toolbar.add({
   id:this.id + '-btn-add-record'
  ,text:this.addText
  ,tooltip:this.addRecordText
  ,iconCls:'icon-plus'
  ,disabled:true
  ,listeners:{
     scope:this
    ,click:{fn:this.onTbarClick.createDelegate(this, ['add']), buffer:200}
  }
});
Follow me:
Latest posts by saki (see all)

Want to collaborate on an upcoming project?