PDA

View Full Version : Returning errors to an editor grid



watermark
19 Jul 2011, 11:22 AM
In a form panel, you can return errors from the backend from within the json packet.



{
success: false,
errors: {
field1: 'blah error',
field2: 'blah error2'
}
}


Is there any way to pass errors to an EditorGridPanel after a save so that they are displayed to the user? EditorGridPanels interact with a store and I don't see a way for the store to pass these errors on to the grid panel. I'm particularly interested in the potential of sending multiple errors to it after a batch save.

aramaki
19 Jul 2011, 1:28 PM
one of possibilities- investigate 'exception' event of store ot httpproxy