I am using ajax.grid in my WCF solution that has GridControl, Service and WebClient projects. I have added the GridControl to my WebClient project but the functions in Grid.js is not being called. WebClient is a web application and I have added a WCF service (.svc) to it. Can you please guide me on where I could be going wrong? I verified that the ajax.controls.dll is there in the bin folder aswell. I don't get any error but nothing appears as the call to set_datasource doesn't run at all.
I am calling a WCF service method to get all customer data. In set_dataSource() I ampassing arbitary name "customers". Here is my pageLoad code:
function pageLoad(){
var grid = $find("grid1");
SriServiceLibrary.ISriService.GetAllCustomers(
function(customers)
{
grid.set_dataSource(customers);
grid.dataBind();
} );
}
Though the code find's the grid control but doesn't do anything in set_dataSource function. I put aan alert in data.js file in that function but it doesn't call that function at all. I verified, GetAllCustomers method returns data. Is there any other way to verify if I any function in Grid.js is being called?