コード例 #1
0
 protected void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.KeepInEditMode   = true;
         e.ExceptionHandled = true;
         DisplayMessage(true, "Customer " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["SubjectName"] + " cannot be updated due to invalid data.");
     }
     else
     {
         DisplayMessage(false, "Customer " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["SubjectName"] + " updated");
     }
 }
コード例 #2
0
 protected void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.KeepInEditMode   = true;
         e.ExceptionHandled = true;
         SetMessage("Update failed. Reason: " + e.Exception.Message);
     }
     else
     {
         SetMessage("Item updated!");
     }
 }
コード例 #3
0
 protected void GridDemoRadGrid_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
 {
     if (e.Exception != null)
     {
         e.KeepInEditMode   = true;
         e.ExceptionHandled = true;
         DisplayMessage(true, "Employee " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"] + " cannot be updated. Reason: " + e.Exception.Message);
     }
     else
     {
         DisplayMessage(false, "Employee " + e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ID"] + " updated");
     }
 }
コード例 #4
0
        protected void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
        {
            GridEditableItem item = (GridEditableItem)e.Item;
            String           id   = item.GetDataKeyValue("StakeholderTypeID").ToString();

            if (e.Exception != null)
            {
                e.KeepInEditMode   = true;
                e.ExceptionHandled = true;
                SetMessage("Supplier with ID " + id + " cannot be updated. Reason: " + e.Exception.Message);
            }
            else
            {
                SetMessage("Supplier with ID " + id + " is updated!");
            }
        }
コード例 #5
0
        protected void RadGridPublicationChannels_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
        {
            GridEditableItem item = (GridEditableItem)e.Item;
            String           id   = item.GetDataKeyValue("ChannelName").ToString();

            if (e.Exception != null)
            {
                e.KeepInEditMode   = true;
                e.ExceptionHandled = true;
                //NotifyUser("Product with ID " + id + " cannot be updated. Reason: " + e.Exception.Message);
            }
            else
            {
                //NotifyUser("Product with ID " + id + " is updated!");
            }
        }
コード例 #6
0
    protected void RadGridaccount_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
    {
        GridEditableItem item = (GridEditableItem)e.Item;
        String           id   = item.GetDataKeyValue("Emp_Id").ToString();

        if (e.Exception != null)
        {
            e.KeepInEditMode   = true;
            e.ExceptionHandled = true;
            Response.Write("Product with ID " + id + " cannot be updated. Reason: " + e.Exception.Message);
        }
        else
        {
            Response.Write("Product with ID " + id + " is updated!");
        }
    }
コード例 #7
0
ファイル: tertiarysns .aspx.cs プロジェクト: G2808/NewSM1
        protected void RadGrid1_ItemUpdated(object sender, Telerik.Web.UI.GridUpdatedEventArgs e)
        {
            GridEditableItem item = (GridEditableItem)e.Item;
            String           id   = item.GetDataKeyValue("ID").ToString();

            if (e.Exception != null)
            {
                e.KeepInEditMode   = true;
                e.ExceptionHandled = true;
                lblErrorItem.Text  = "ID " + id + " cannot be updated. Reason: " + e.Exception.Message;
            }
            else
            {
                SqlConnection con = new SqlConnection(sConnectionString);
                SqlCommand    cmd = new SqlCommand("smUpdateTertirySalesNew", con);
                cmd.CommandType = CommandType.StoredProcedure;
            }
        }
コード例 #8
0
ファイル: Orders.aspx.cs プロジェクト: asaal/Alamaat
 protected void RadGrid1_ItemUpdated(object source, Telerik.Web.UI.GridUpdatedEventArgs e)
 {
 }
コード例 #9
0
 protected void RadProjectGrid_ItemUpdated(object sender, Telerik.Web.UI.GridUpdatedEventArgs e)
 {
     RadProjectGrid.Rebind();
 }
コード例 #10
0
 protected void CagesRadGrid_ItemUpdated(object sender, Telerik.Web.UI.GridUpdatedEventArgs e)
 {
 }