I have a web service that returns me results as this data structure.
The
So, my question...How do i access that Errors collection and display that to the user?
public class LoadSearchingReturn
{
[DataMember]
public IEnumerable<Results
> SearchingResults { get; set; }
[DataMember]
public IEnumerable<string> Errors {get;set;}
[DataMember]
public int TotalResults { get; set; }
}
The
SearchingResults
is what displays in my grid and I use the Total Results inside my schema like: dataSource: {
schema: {
data: "d.SearchingResults",
total: function (data) {
return data.d.TotalResults;
}
},
So, my question...How do i access that Errors collection and display that to the user?