[OPEN] [#387] CellEditing ValidateEdit with Ext.Msg.Show

  1. #1

    [OPEN] [#387] CellEditing ValidateEdit with Ext.Msg.Show

    I have a ext:GridPanel that is an item of ext:Window which is modal="true". During the CellEditing listener ValidateEdit I check if a certain field is being edited (e.field) and if it is I check if it is a duplicate name (Ext.Array.some). If so I return false. Everything works perfectly.

    Now I decided to also display a message to the user in the ValidateEdit function.

       if (duplicateName)
          Ext.Msg.show({ icon: Ext.MessageBox.ERROR, msg: 'Release name is duplicate.', buttons: Ext.Msg.OK, modal: true });
    The problem is that the message displays behind the Window and does not block the Window/GridPanel. Is this because the Window/GridPanel is already modal?

    Thoughts ...
    Last edited by Baidaly; Nov 20, 2013 at 7:28 PM. Reason: [OPEN] [#387]
  2. #2
    Hello!

    It seems that Sencha knows about this bug but didn't fix it yet.

    Try the following: http://www.sencha.com/forum/showthread.php?194555

    var mm = Ext.Msg.show({ icon: Ext.MessageBox.ERROR, msg: 'Release name is duplicate.', buttons: Ext.Msg.OK, modal: true }); 
    
    Ext.defer(function () {
        mm.toFront();
    }, 50);
  3. #3
    Just found another reference at

    Message box does not show infront modal window on gridpanel selctionchange event

    I will test it in the morning.
  4. #4
    The suggestion worked.

    Please close it if you feel it is not a bug or open an issue.
  5. #5
    We've opened an issue: https://github.com/extnet/Ext.NET/issues/387

    Hopefully, Sencha will fix it soon.
    Last edited by Baidaly; Nov 20, 2013 at 7:33 PM.
  6. #6
    Sencha fixed this bug in 4.2.2.1144. The fix will be included with this version of Ext JS.
    Last edited by Baidaly; Nov 20, 2013 at 8:20 PM.

Similar Threads

  1. [CLOSED] ValidateEdit in EditGrid issue
    By capbarbell in forum 2.x Legacy Premium Help
    Replies: 5
    Last Post: May 14, 2013, 11:02 AM
  2. GridPanel ValidateEdit Problem
    By cath he dash hai in forum 1.x Help
    Replies: 3
    Last Post: Nov 04, 2012, 3:02 AM
  3. [CLOSED] Need RowEditor ValidateEdit Listener and DirectEvent Example
    By SFritsche in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 24, 2010, 3:28 AM
  4. ValidateEdit Fires even if value is unmodified
    By nanosassa in forum 1.x Help
    Replies: 1
    Last Post: Aug 24, 2009, 1:18 PM
  5. Replies: 3
    Last Post: Feb 09, 2009, 11:42 AM

Posting Permissions