Results 1 to 2 of 2

Thread: CellEditor in EditorGrid lose content when you scroll the grid

  1. #1
    Sencha Premium Member
    Join Date
    Oct 2015
    Posts
    10

    Question CellEditor in EditorGrid lose content when you scroll the grid

    Hi,

    if i scroll my livegrid and have an editor in, the entered value will be not comited in the store.

    This two listener have no value found in the editor field.

    grid.getEditor(quantity).addBlurHandler(new BlurHandler() {
    @Override
    public void onBlur(BlurEvent event) {
    GWT.log("blur");
    grid.getEditor(quantity).finishEditing();
    }
    });


    grid.getEditableGrid().addDomHandler(new ScrollHandler() {

    @Override
    public void onScroll(ScrollEvent event) {
    GWT.log("Scroll " + grid.getEditor(quantity).getValue());
    grid.getEditor(quantity).finishEditing();
    }
    }, ScrollEvent.getType());

  2. #2
    Sencha Premium Member
    Join Date
    Oct 2015
    Posts
    10

    Default

    Solution:

    Overwrite "onScroll" in class "GridInlineEditing":
    final GridInlineEditing<ArticleDataImpl> stepOnEnterGridInlineEditing = new GridInlineEditing<ArticleDataImpl>(view){
    protected void onScroll(ScrollEvent event) {
    getEditor(quantity).finishEditing();
    super.onScroll(event);
    }
    };

Similar Threads

  1. Replies: 5
    Last Post: 16 Jun 2017, 1:53 AM
  2. Replies: 1
    Last Post: 7 Mar 2012, 11:42 PM
  3. Focus the first CellEditor in a EditorGrid
    By tprice in forum Community Discussion
    Replies: 2
    Last Post: 1 Feb 2012, 4:02 AM
  4. Replies: 0
    Last Post: 21 Jan 2011, 1:45 PM

Tags for this Thread

Posting Permissions

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