Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
650
Problem Refreshing the Ultrawebgrid(8.1)
posted
Good Day all i have ultrawebgrid onclient side if a user clicks on a delete button, it shows a messagebox from javascript like this
 function ultraGridCC_BeforeRowDeletedHandler(gridName, rowId)
    {
       
	    
	    if (window.confirm("Are you sure you want to delete this contact type?")) 
	    {
    	   
	    }
	    else
	    {
	        return true;
	    }

   
    }
If the user Clicks on yes then it does to this code [code] protected void ultraGridCC_DeleteRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { BLL.BLL obj = new BLL.BLL(); String Description = hid.Value; // This will store the Selected Descrption String Hidi = hidid.Value; String[] Final_String_Description = Description.Split(new Char[] { ',' }); //This is a Descrption of a Contact Type String[] Final_String_ID = Hidi.Split(new Char[] { ',' }); //This is the ID of the Contact Tpype List Selected_Description = new List(); List Selected_String_ID = new List(); //Here we are Splitting the String foreach (String id in Final_String_Description) { Selected_Description.Add(id); } //Here we are Splitting the String foreach (String id in Final_String_ID) { Selected_String_ID.Add(id); } String DB = Convert.ToString(Session["ActiveDatabase"]); int Results = obj.check_contact_before_delete(Description,DB); if (Results == 0) { //bool worked = ultraGridCC.DeleteDBRow(e.Row); for (int i = 0; i