This is a migrated thread and some comments may be shown as answers.

Javascript on IPAD

0 Answers 56 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kavya
Top achievements
Rank 2
Kavya asked on 20 Sep 2011, 06:38 PM
Hi

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);
 }
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

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Kavya
Top achievements
Rank 2
Share this question
or