I have following code, when the button is clicked to load it gets array of data.
 $('#btnLoad').button().click(function () {
                    var ri = 110;
                 var data=  $.ajax({
                        type: 'Get',
                        url: "./app/test/sD?roodId=" + ri+"&",
                 });
                 alert(data[1].mainCo);                       
                    $('#tblAppendGrid').appendGrid('load', data)
                });
I can see in browser tools it returns array with set of values. However when I save it as data something is not right, cause in alert it just gives undefined error and thus does not load the grid. How can I save the returned array values so I can pass it to the grid. Thanks
 
     
    