Extjs - How to open edit form on mybtn click?

Posted by  JAMES Williams
 1300  View(s)
Rate this:
I m new in Extjs programming. I have created an edit form, when the user clicks the edit button then that edit form will show. the code I am using is provided below:
edit_window_xtype: 'Name of the Window',
the above code is working perfectly, but here is some issue, form will call when the button is clicked but not when user double clicks a field.
code is below:
editbtn_onClick: function (mybtn) {
    Ext.create('window name').show();
but it is not working. Please help me.