This question is locked. New answers and comments are not allowed.
Hi,
I am trying to populate a ComboBox with a list in JSON format that is returned by an external web Service.
This is the code I have
On the aspx page:
<% Html.Telerik().ComboBox()
.Name("cbRefTables")
.DataBinding(b => b
.Ajax()
.Select("GetCALMdata","Common")
)
.Render();
%>
In my controller:
public JsonResult GetCALMdata()
{
CALMwsP.wsCALMSoapClient wsC = new CALMwsP.wsCALMSoapClient("wsCALMSoap");
return Json(wsC.GetRefTables("MyID", "MyDB", "MyWorkstation", "MyApp"), JsonRequestBehavior.AllowGet);
}
I get the following error:
Microsoft JScript runtime error: 'Selected' is null or not an object
I am trying to populate a ComboBox with a list in JSON format that is returned by an external web Service.
This is the code I have
On the aspx page:
<% Html.Telerik().ComboBox()
.Name("cbRefTables")
.DataBinding(b => b
.Ajax()
.Select("GetCALMdata","Common")
)
.Render();
%>
In my controller:
public JsonResult GetCALMdata()
{
CALMwsP.wsCALMSoapClient wsC = new CALMwsP.wsCALMSoapClient("wsCALMSoap");
return Json(wsC.GetRefTables("MyID", "MyDB", "MyWorkstation", "MyApp"), JsonRequestBehavior.AllowGet);
}
I get the following error:
Microsoft JScript runtime error: 'Selected' is null or not an object