[CLOSED] Grid - Plugin RowEditing - AutoCancel(false) looses its effect once ErrorSummary is witched off

  1. #1

    [CLOSED] Grid - Plugin RowEditing - AutoCancel(false) looses its effect once ErrorSummary is witched off

    Hi,

    I am working with RowEditing Plugin of Grid, my RowEditing plugin has AutoCancel set to false. Now I need to switch off the ErrorSummary, as soon as I switch if off the AutoCancel property looses its behavior?

    .Plugins(
            Html.X().RowEditing().AutoCancel(false).SaveBtnText(@Resources.ManageTraffic.SaveButton).ErrorSummary(true)
        )

    Can this be please checked?

    Is there a way I can show the validation error message on focus rather than hover for RowEditing Plugin?

    Cheers,
    Avi
    Last edited by Daniil; Feb 11, 2014 at 4:03 PM. Reason: [CLOSED]
  2. #2
    Hi Avi,

    Yes, it is how it is done in ExtJS.
    http://docs.sencha.com/extjs/4.2.1/s...hod-beforeEdit
    beforeEdit: function() {
        var me = this,
            scrollDelta;
    
        if (me.isVisible() && me.errorSummary && !me.autoCancel && me.isDirty()) {
    
            // Scroll the visible RowEditor that is in error state back into view
            scrollDelta = me.getScrollDelta();
            if (scrollDelta) {
                me.scrollingViewEl.scrollBy(0, scrollDelta, true)
            }
            me.showToolTip();
            return false;
        }
    }
    You could override it getting rid of the "&& me.errorSummary" condition.
    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;
            }
        }
    });
    Quote Originally Posted by asolvent View Post
    Is there a way I can show the validation error message on focus rather than hover for RowEditing Plugin?
    Unfortunately, there is no such the functionality. There is a few options available, but no "Show on focus".
    http://docs.sencha.com/extjs/4.2.1/#...-cfg-msgTarget

Similar Threads

  1. [OPEN] [#103] RowEditing Plugin - Format bug?
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 29, 2012, 7:57 AM
  2. [CLOSED] Two column combo in grid rowediting plugin
    By ASAPCH in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 08, 2012, 5:52 PM
  3. [CLOSED] About the rowEditing plugin.
    By feanor91 in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 10, 2012, 12:31 PM
  4. [CLOSED] Grid RowEditing Plugin - Height
    By adelaney in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 13, 2012, 10:00 PM
  5. Replies: 2
    Last Post: Sep 02, 2010, 8:15 PM

Tags for this Thread

Posting Permissions