This is the code I am using to get the variance:
function
Variance(sender, args)
{
var rdgrid = $find("<%=RadGrid1.ClientID %>");
var cell = sender.get_element().parentNode.parentNode;
var index = cell.parentNode.rowIndex;
var MasterTable = rdgrid.get_masterTableView();
var row = MasterTable.get_dataItems()[index - 2]; //getting row
var tbxAdopted = row.findControl("tbxAdopted").get_value(); //getting value of TextBox 'tbxAdopted'
var tbxReq = row.findControl("tbxReq").get_value();
var Variance = tbxReq - tbxAdopted;
var tbxVariance = MasterTable.get_dataItems()[index - 2].findControl("tbxVar");
tbxVariance.set_value(Variance);
}
this gets the value of the textbox changed in the variance column:
var
newInput = 0.0;
function VarianceTotal(sender, args) {
newInput = sender.get_value();
}
Thanks for your help.