Threaded View

  1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    28
    Vote Rating
    7
    Answers
    1
    rhytha268 is on a distinguished road

      1  

    Default Answered: Extjs 4.2 RowEditing

    Answered: Extjs 4.2 RowEditing


    Hi,

    I am using RowEditing in grid. I used "textarea" to enter some description and in that "textarea" on pressing "Enter" button it's updating record.

    How to avoid updating record and getting new line in "textarea" on pressing "Enter" button.

    Thank you

  2. Try this with your text-area -

    xtype: 'textarea'
    ,height: 80
    ,listeners: {
    afterrender: function(){
    var me = this;
    me.el.swallowEvent(['keypress','keydown' ]);
    }
    }