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; } }
protected void gridpending_Load(object sender, EventArgs e) { USC_paraminput1.dtbindpending(gridpending); funcpendCss = (grid.GroupCount > 0) ? "" : "hide"; }