protected void grid_ItemInserted(object sender, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         e.KeepInInsertMode = true;
         ntf.Show("Cannot insert! check the data again");
     }
 }
示例#2
0
 protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         SetMessage("Insert failed! Reason: " + e.Exception.Message);
     }
     else
     {
         SetMessage("New product is inserted!");
     }
 }
 protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         SetMessage("Insert failed! Reason: " + e.Exception.Message);
     }
     else
     {
         SetMessage("New product is inserted!");
     }
 }
 protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         SetMessage("Supplier cannot be inserted. Reason: " + e.Exception.Message);
     }
     else
     {
         SetMessage("New Supplier is inserted!");
     }
 }
 protected void productsGrid_ItemInserted(object sender, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         ScriptManager.RegisterStartupScript(this, this.GetType(), "", "toastr.error('" + e.Exception.Message.Replace("'", "").Replace("\r\n", "") + "', 'Error');", true);
     }
     else
     {
         ScriptManager.RegisterStartupScript(this, this.GetType(), "", "toastr.success('Saved Successfully', 'Success');", true);
     }
 }
 protected void rg_ItemInserted(object source, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         SetMessage("User cannot be inserted. Reason: " + e.Exception.Message);
     }
     else
     {
         SetMessage("New User is inserted!");
     }
 }
示例#7
0
 protected void tabGrid_ItemInserted(object sender, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         ScriptManager.RegisterStartupScript(this, this.GetType(), "", "toastr.error('Tabernacle name already exist...Cannot Save', 'Error');", true);
     }
     else
     {
         ScriptManager.RegisterStartupScript(this, this.GetType(), "", "toastr.success('Saved Successfully', 'Success');", true);
     }
 }
示例#8
0
 protected void gridValidity_ItemInserted(object sender, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         NotifyUser("Item cannot be inserted. Reason: " + e.Exception.Message);
     }
     else
     {
         NotifyUser("New item is inserted!");
     }
 }
 protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
     }
     else
     {
         string NameOld = e.Item.SavedOldValues["Name"].ToString();
         string NameNew = e.Item.GetDataKeyValue("Name").ToString();
     }
 }
示例#10
0
 protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         e.KeepInInsertMode = true;
         DisplayMessage(true, "Customer cannot be inserted due to invalid data.");
     }
     else
     {
         DisplayMessage(false, "Customer inserted");
     }
 }
示例#11
0
 protected void RadGrid1_ItemInserted(object sender, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         SetMessage("No se pudo crear el registro. Error: " + e.Exception.Message);
     }
     else
     {
         BL.UserBL.AddAdministrator();
         SetMessage("Registro creado!");
     }
 }
示例#12
0
 protected void GridDemoRadGrid_ItemInserted(object source, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         e.KeepInInsertMode = true;
         DisplayMessage(true, "Employee cannot be inserted. Reason: " + e.Exception.Message);
     }
     else
     {
         DisplayMessage(false, "Employee inserted");
     }
 }
示例#13
0
 protected void PersonsGrid_ItemInserted(object sender, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         SetMessage("Customer cannot be inserted. Reason: " + e.Exception.Message);
     }
     else
     {
         SetMessage("New customer is inserted!");
         persons = serviceClient.GetPersons();
     }
 }
示例#14
0
        protected void RadGRidQuestionnaire_ItemInserted(object sender, GridInsertedEventArgs e)
        {
            string sItem=getItemName(e.Item.OwnerTableView.Name);

            if (e.Exception != null)
            {
                e.ExceptionHandled = true;
                DisplayMessage(sItem + " Cannot be Inserted... Reason: " + e.Exception.Message);
            }
            else
            {
                DisplayMessage(sItem + " Is Inserted...!");

            }
        }
 protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
 {
 }
 protected void RadGridEditor_ItemInserted(object source, GridInsertedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         e.KeepInInsertMode = true;
         SqlException ex = e.Exception as SqlException;
         if (ex == null)
             DisplayMessage("لم نتمكن من اضافة الصف وذلك بسبب:  " + Environment.NewLine + e.Exception.Message);
         else
             DisplayMessage("لم نتمكن من اضافة الصف وذلك بسبب:  " + Environment.NewLine + MC.CheckExp(ex));
     }
     else
         DisplayMessage("تم الاضافه");
 }
示例#17
0
        protected void RGTestName_ItemInserted(object source, GridInsertedEventArgs e)
        {
            if (e.Exception != null)
            {
                e.ExceptionHandled = true;
                e.KeepInInsertMode = true;

                ShowErrorMessage();

            }
        }
示例#18
0
 protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
 {
     string item = getItemName(e.Item.OwnerTableView.Name);
     if (e.Exception != null)
     {
         e.ExceptionHandled = true;
         DisplayMessage(item + " cannot be inserted. Reason: " + e.Exception.Message);
     }
     else
     {
         DisplayMessage(item + " inserted");
     }
 }
 protected void RadGrid1_ItemInserted(object source, GridInsertedEventArgs e)
 {
 }
示例#20
0
 protected void LanesRadGrid_ItemInserted(object sender, GridInsertedEventArgs e)
 {
 }
示例#21
0
        protected void RGTreatment_ItemInserted(object source, GridInsertedEventArgs e)
        {
            if (e.Exception != null)
            {
                e.ExceptionHandled = true;
                e.KeepInInsertMode = true;

                ShowErrorMessage();

            }
            //else
            //{
            //	PrescriptionRadAjaxManager.ResponseScripts.Add(string.Format("window.radalert(\"Data Inserted successfully.\")"));
            //}
        }
示例#22
0
 protected void StoreDelivGroupsRadGrid_ItemInserted(object sender, GridInsertedEventArgs e)
 {
 }