Hello!
I receive the error Cannot find any bindable properties in an item from the datasource when I try to achieve client-side databinding with the help of a webservice.
I use one class to handle all calls to my stored procedures. They return a DataTable. When I use these calls in RadGrid1_NeedDataSource() to bind data with RadGrid1.DataSource = myClass.GetDataTable(); it works fine.
But when I place the same call in a WebService and use that Webservice in my javascript functions it does not.
in myService.cs:
[WebMethod]
public DataTable bindData()
{
return myClass.GetDataTable();
}
my javascript:
function pageLoad(sender, args)
{
setInterval("myService.bindData(updateGrid)", 1000);
}
function updateGrid(result)
{
//var grid = $find("<%= RadGrid1.ClientID %>");
//grid.DataSource = result;
var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
}
In my RadGrid I use an ItemTemplate.
I receive the error Cannot find any bindable properties in an item from the datasource when I try to achieve client-side databinding with the help of a webservice.
I use one class to handle all calls to my stored procedures. They return a DataTable. When I use these calls in RadGrid1_NeedDataSource() to bind data with RadGrid1.DataSource = myClass.GetDataTable(); it works fine.
But when I place the same call in a WebService and use that Webservice in my javascript functions it does not.
in myService.cs:
[WebMethod]
public DataTable bindData()
{
return myClass.GetDataTable();
}
my javascript:
function pageLoad(sender, args)
{
setInterval("myService.bindData(updateGrid)", 1000);
}
function updateGrid(result)
{
//var grid = $find("<%= RadGrid1.ClientID %>");
//grid.DataSource = result;
var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
tableView.set_dataSource(result);
tableView.dataBind();
}
In my RadGrid I use an ItemTemplate.