Hi
I am trying to call a RadWindow Alert from a RadGrid ItemCommand but get this exception
"Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object."
I am trying to test for some selected items within a sub-grid, so my code is:
This errors on the RadAlert line...
Any clues please.
I am trying to call a RadWindow Alert from a RadGrid ItemCommand but get this exception
"Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object."
I am trying to test for some selected items within a sub-grid, so my code is:
public static void RadGrid1_ItemCommand(object sender, GridCommandEventArgs e) { RadGrid RadGrid1 = (RadGrid)sender; if (e.CommandName == "AddToCart") { if (RadGrid1.SelectedIndexes.Count == 0) { RadWindowManager1.RadAlert("No documents have been selected", 250, 100, "Add to Document Cart", ""); return; } GridCommandItem Item = (GridCommandItem)e.Item; ImageButton btnAddToCart = (ImageButton)e.Item.FindControl("btnAddSelectedToCart"); .... ..... rest of code... }}This errors on the RadAlert line...
Any clues please.