Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    EditorExitEvent issue

    ListGrid EditorExitEvent is not being called if user modify the cell and then just click on the "Save" LinkItem in the toolbar. I tried to add FocusChangedHandler, but it is also not working :
    Code:
    grid.addFocusChangedHandler(new FocusChangedHandler()
    {
    	public void onFocusChanged(FocusChangedEvent event)
    	{
    		if(!event.getHasFocus())
    		{
    			SC.say("Lost Focus");
    		}
    	}
    });
    Any suggestions ? Is there a way to call EditorExitEvent from the Save method ?
    Thanks.

    #2
    That's not editorExit, that's focusChanged.

    Focus in a grid is on the body element or header menus or other elements, but not on the grid itself. Hence editorExit is provided for uniform notification.

    Comment


      #3
      But the problem is that the editorExit is not being fired if user edit a cell and just click on the LinkItem outside of the grid. Any idea how to force editorExit?

      Comment


        #4
        Just want to put an update on this issue. We had a code to always display all editors: grid.setAlwaysShowEditors(true); This was a business requirement.

        With this setting the EditorExit even does not fire if you click outside of grid, so no validations or calculations are done.
        Now after I remove this code the event works correctly.

        Comment

        Working...
        X