Hello all,
I am using the AjaxData:Gridview. I am calling a web service to retrieve a datatable. The data is received because thru Firebug I can see the JSON output in the Web service Response. However, it does not load the 'result' into the ajaxdata:gridview on the page. I have looked thru the examples and cannot find a solution.
In debugging the javascript in VS, it states that 'result' is undefined ??
Here is the code:
function pageLoad(sender, e){
var zCode = "22153"
var radius = 20;
DataService.ByZipCodeOrCity(zCode, radius, onLoadSuccess);
}
function onLoadSuccess(result){
var gridView = $find('_ctl0_cphContent_ajaxGVResults');
gridView.set_dataSource(result.Rows);
gridView.dataBind();
}
I have a breakpoint at gridView.set_dataSource, that is where VS says 'result'= undefined, after the break it just displays the the no data text in ajaxdata:gridview.
I have the ajaxdatacontrols.dll and microsoft.web.preview.dll in the bin folder and the following in my web.config.