PDA

View Full Version : message comes twice at datagrid



sadeque
Feb 02, 2010, 3:05 AM
this.message = "Designation cannot be blank.";


if i use this code at Store1_BeforeRecordInserted then this message comes twice.

if i block the following code then it comes once, nut not in message box format.




<CommitFailed Handler="Ext.Msg.alert('Designation Information - Commit failed', 'Reason: ' + msg)" />
<SaveException Handler="Ext.Msg.alert('Designation Information - Save failed', e.message || e)" />




HELP.

plykkegaard
Feb 02, 2010, 10:12 AM
Hi

There's a property on the store, set it to false and you'll be fine


store.ShowWarningOnFailure = false;

hth

sadeque
Feb 03, 2010, 12:08 AM
Thanks peter.

It works.