I have a TreeView which is bound to a webservice which works fine. However if you go to the asmx file to see the webservice definition. You get the following error
Cannot serialize member Telerik.Web.UI.ControlItemData.Attributes of type System.Collections.Generic.IDictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] because it is an interface.
This is obvoiusly the same issue as described here :
http://www.telerik.com/community/forums/aspnet-ajax/combobox/radcombobox-load-on-demand-with-web-service.aspx
To fix it you suggest creating a custom class type
Is this possible as I am refering to the attributes property when returning the array of data , so creating a custom class wont make any difference.
i.e. public IDictionary<string, object> Attributes { get; set; }
it would be nice if the definition would display properly.
thanks
Toby
Cannot serialize member Telerik.Web.UI.ControlItemData.Attributes of type System.Collections.Generic.IDictionary`2[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]] because it is an interface.
This is obvoiusly the same issue as described here :
http://www.telerik.com/community/forums/aspnet-ajax/combobox/radcombobox-load-on-demand-with-web-service.aspx
To fix it you suggest creating a custom class type
Is this possible as I am refering to the attributes property when returning the array of data , so creating a custom class wont make any difference.
i.e. public IDictionary<string, object> Attributes { get; set; }
it would be nice if the definition would display properly.
thanks
Toby