Results 1 to 3 of 3

Thread: Row editable grid, click on headers and Event ColumnHeader.onHeaderClick

  1. #1

    Default Row editable grid, click on headers and Event ColumnHeader.onHeaderClick

    Hi,

    Please look this example : http://www.sencha.com/examples/#Exam...oweditablegrid

    If you click row, you pass in mode editing .. when you click on the header you exit the cell you have edit.

    click on the header column when edit a row, causes passage in the event : protected void onHeaderClick(Event event, int column) {
    container.fireEvent(new HeaderClickEvent(column, event, menu));
    }

    How can i disable this passage in onHeaderClick ?

    Thank's

  2. #2
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    49

    Default

    I think onHeaderMouseDown is the one you want. This calls completeEditing() in AbstractGridEditing, and it sounds like you don't want completeEditing to occur.

  3. #3

    Default

    Quote Originally Posted by rondestvedt View Post
    I think onHeaderMouseDown is the one you want. This calls completeEditing() in AbstractGridEditing, and it sounds like you don't want completeEditing to occur.
    thank you,
    Exactly, that's what I want.
    By clicking on the title, I do not want to go in completeEditing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •