Posted on: 9/14/2012 1:37:24 AM | Views : 377

Hi, can you take a look at my code please.
I am performing validation on Telerik's RadGrid footer values for several columns. My aim is to not allow updates if the footer values of 3 of the columns don't equal the 4th one (ex. column a + column b +column c = column d).  Currently the behavior I am getting is that every update transaction is being cancelled despite the  sum of columns a,b and c matching column d
protected void RadGrid1_UpdateCommand(object source, GridCommandEventArgs e) { GridEditableItem editItem = (GridEditableItem)e.Item; GridFooterItem footerItem = RadGrid1.MasterTableView.GetItems(GridItemType.Footer)[0] as GridFooterItem; string column1 = footerItem["WEEKENDS_MTD"].Text; string column2 = footerItem["HOLIDAYS_MTD"].Text; string column3 = footerItem["BUSINESS_DAYS_MTD"].Text; string total = footerItem["CALENDAR_DAYS_MTD"].Text; int footervalue1; ...

Go to the complete details ...