protected void panel_Callback(object source, DevExpress.Web.CallbackEventArgsBase e) { try { panel.JSProperties["cp_action"] = ""; if (e.Parameter.StartsWith("s:")) { panel.JSProperties["cp_action"] = "s"; USC_paraminput1.savepending(null); } else if (e.Parameter.StartsWith("r:")) { panel.JSProperties["cp_action"] = "r"; USC_paraminput1.retrieve(e.Parameter.Substring(2)); } else if (e.Parameter.StartsWith("rp:")) { panel.JSProperties["cp_action"] = "rp"; USC_paraminput1.retrievepending(e.Parameter.Substring(3)); } } catch (Exception ex) { string errmsg = ex.Message; if (errmsg.IndexOf("Last Query") > 0) { errmsg = errmsg.Substring(0, errmsg.IndexOf("Last Query")); } panel.JSProperties["cp_alert"] = errmsg; } }
protected void gridpending_CustomCallback(object sender, DevExpress.Web.ASPxGridViewCustomCallbackEventArgs e) { try { if (e.Parameters.StartsWith("d:")) { USC_paraminput1.savepending(e.Parameters.Substring(2)); USC_paraminput1.dtbindpending(gridpending); //gridpending.JSProperties["cp_alert"] = "data deleted moved to pending"; } if (e.Parameters.StartsWith("dp:")) { USC_paraminput1.deletepending(e.Parameters.Substring(3)); USC_paraminput1.dtbindpending(gridpending); } } catch (Exception ex) { string errmsg = ex.Message; if (errmsg.IndexOf("Last Query") > 0) { errmsg = errmsg.Substring(0, errmsg.IndexOf("Last Query")); } gridpending.JSProperties["cp_alert"] = errmsg; } }