Hi,
Up to now I have been using local binding but now I need to show a grid using remote binding. I have defined a WCF method that is being called e returns a DataSourceResult. This class was picked from grid-wcf-crud code sample.
public class DataSourceResult
{
/// <summary>
/// Represents a single page of processed data.
/// </summary>
public IEnumerable Data { get; set; }
/// <summary>
/// The total number of records available.
/// </summary>
public int Total { get; set; }
}
I have defined the Read function like this:
var properties = { url: url, data: data, type: 'POST', dataType: dataType, contentType: 'application/json',
cache: false, success: OnSuccess, error: OnError };
$.ajax(properties);
Debugging the WCF method I can see that it is being called correctly and the returned data is OK. But I am receiving a 12152 error code in the javascript.
What could it be ?
Thanks in advance
Up to now I have been using local binding but now I need to show a grid using remote binding. I have defined a WCF method that is being called e returns a DataSourceResult. This class was picked from grid-wcf-crud code sample.
public class DataSourceResult
{
/// <summary>
/// Represents a single page of processed data.
/// </summary>
public IEnumerable Data { get; set; }
/// <summary>
/// The total number of records available.
/// </summary>
public int Total { get; set; }
}
I have defined the Read function like this:
var properties = { url: url, data: data, type: 'POST', dataType: dataType, contentType: 'application/json',
cache: false, success: OnSuccess, error: OnError };
$.ajax(properties);
Debugging the WCF method I can see that it is being called correctly and the returned data is OK. But I am receiving a 12152 error code in the javascript.
What could it be ?
Thanks in advance