Hi
I am using this code to get the Grandtotal of each item in Radgrid and show it in textbox outside Grid
only when an item is checked i am retreiving the total.
When i open the same page on IPAD or safari . It gives me error item.Control.cells[1].all is not an object.
How can i get the item of radgrid in a row using uniquename.
Please help.
Thank you
kavya
I am using this code to get the Grandtotal of each item in Radgrid and show it in textbox outside Grid
function Grand_Total(sender)
{
var tot_cos = document.getElementById("tot_cos");
var grandTotal = 0;
for(var i = 0; i < sender.MasterTableView.Rows.length; i++) //loop through the items
{
var item = sender.MasterTableView.Rows[i];
if (item.Control.cells[1].all[0].checked == true)
{
var total;
total= item.Control.cells[8].all[0].value.replace("$","");
grandTotal = parseFloat(grandTotal) + parseFloat(total);
}
}
tot_cos.value = parseFloat(grandTotal);
}
When i open the same page on IPAD or safari . It gives me error item.Control.cells[1].all is not an object.
How can i get the item of radgrid in a row using uniquename.
Please help.
Thank you
kavya