[CLOSED] Grid Panel RowEditing Plugin : AutoCancel does not work without Error Summary

  1. #1

    [CLOSED] Grid Panel RowEditing Plugin : AutoCancel does not work without Error Summary

    I am trying to use Row editing plugin and want prevent user going to other row, until the editing is complete.

    The given code works fine, but it shows a window with error summary, which I don't like. If I turn error summary false, then AutoCancel property does not work at all.

        Html.X().PagingToolbar().ID("editList"))
                .Plugins(
                    Html.X().RowEditing().AutoCancel(false).ErrorSummary(true)

    Is there any way around for this?

    Reference URL : https://examples2.ext.net/#/GridPane...ins/RowEditor/

    Thanks,
    Rajiv Dutt
    Last edited by Daniil; May 23, 2014 at 7:00 AM. Reason: [CLOSED]
  2. #2
    Hi @RajivDutt,

    I can suggest this override to achieve the requirement.
    Ext.grid.RowEditor.override({
        beforeEdit: function() {
            var me = this,
                scrollDelta;
    
            //if (me.isVisible() && me.errorSummary && !me.autoCancel && me.isDirty()) {
            if (me.isVisible() && !me.autoCancel && me.isDirty()) {
                scrollDelta = me.getScrollDelta();
                if (scrollDelta) {
                    me.scrollingViewEl.scrollBy(0, scrollDelta, true)
                }
                //me.showToolTip();
                return false;
            }
        }
    });

Similar Threads

  1. [CLOSED] Grid Panel - CellSelectionModel with RowEditing Plugin
    By RajivDutt in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Apr 22, 2014, 2:40 PM
  2. Replies: 1
    Last Post: Feb 04, 2014, 3:30 PM
  3. [CLOSED] RowEditing Delay validation and position of error summary
    By rthiney in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 13, 2012, 2:48 AM
  4. [CLOSED] Two column combo in grid rowediting plugin
    By ASAPCH in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 08, 2012, 4:52 PM
  5. [CLOSED] Grid RowEditing Plugin - Height
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 13, 2012, 9:00 PM

Posting Permissions