protected override void CancelEdit() { if (DataForm != null) { DataForm.CancelEdit(); (DataForm.ParentOfType <RadWindow>()).DialogResult = false; (DataForm.ParentOfType <RadWindow>()).Close(); } }
protected override void CommitEdit() { if (DataForm != null && DataForm.ValidateItem()) { if (commitEditOp(DataForm.CurrentItem)) { DataForm.CommitEdit(); (DataForm.ParentOfType <RadWindow>()).DialogResult = true; (DataForm.ParentOfType <RadWindow>()).Close(); } } }