Hi,
I m using radgrid for my application.
and i need to pass a dataset or datatable from webservice to bind radgrid using javascript.
i have worked with your sample also and i have used following code snippet,
In webservice
I m using radgrid for my application.
and i need to pass a dataset or datatable from webservice to bind radgrid using javascript.
i have worked with your sample also and i have used following code snippet,
In webservice
public DataSet HelloWorld()
{
DataTable datatable = (DataTable)Session["oInstallationInfo"];
DataSet ds = new DataSet();
ds.Tables.Add(datatable);
return ds;
}
and
in aspx page
function
ReceiveServerData(rValue)
{
xtenzasolutions.WebService1.HelloWorld(updateGrid,OnError);
alert(rValue);
}
function
OnError(result)
{
alert(
"Error : "+result.get_message());
}
function updateGrid(result,userContext)
{
debugger;
alert(result);
var tableview= $find("<%= rgDetails.ClientID %>").get_masterTableView();
tableview.set_dataSource(result);
tableview.dataBind();
}
I m getting the error 'Circular Reference was detected'. Please find the error page with this message.
Please give any suggestions.
Thanks in advance.
Regards,
Feroz