Hello,
I'm trying to use your Ajax product with WCF Webservice, I've crated a webmethod :
and attached from ajax the WebServiceSetting :
but each time I try to use it I got this error :
Microsoft JScript runtime error: 'length' is null or not an object
The WS method is executed (I see the data in the result (via Vs2008) but when it should bind to the combobox got that exception...
any suggestion??
Thanks in advance
Paolo
I'm trying to use your Ajax product with WCF Webservice, I've crated a webmethod :
| [OperationContract] |
| public RadComboBoxData GetGruppi(RadComboBoxContext context) |
| { |
| RadComboBoxData result = new RadComboBoxData(); |
| DataSet ds = dataAccess.GetListaGruppi(); |
| if (ds != null && ds.Tables[0].Rows.Count > 0) |
| { |
| List<RadComboBoxItemData> lst = new List<RadComboBoxItemData>(); |
| foreach (DataRow dr in ds.Tables[0].Rows) |
| { |
| RadComboBoxItemData item = new RadComboBoxItemData(); |
| item.Text = GetCheckedString(dr[2]); |
| // item.Value = string.Format("{0}-{1}", Convert.ToInt32(dr[0]), Convert.ToInt32(dr[1])); |
| item.Value = GetCheckedString(dr[0]); |
| lst.Add(item); |
| } |
| result.Items = lst.ToArray(); |
| } |
| return result; |
| } |
and attached from ajax the WebServiceSetting :
| <WebServiceSettings Method="GetGruppi" Path="../WS/IFManagement.svc" /> |
but each time I try to use it I got this error :
Microsoft JScript runtime error: 'length' is null or not an object
The WS method is executed (I see the data in the result (via Vs2008) but when it should bind to the combobox got that exception...
any suggestion??
Thanks in advance
Paolo