I have added a combo box to my page and then i wan to enable load on demand to load big number of records from my WCF service.
I'm getting an error when i click on the combo box: The server method 'MyMethod' failed.
here is my combo box html:
<telerik:RadComboBox ID="rcMyCombo" runat="server" CheckBoxes="True" EmptyMessage="Choose ...." Width="300px" DataTextField="Name" DataValueField="Id"
EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" >
<WebServiceSettings Path="http://localhost:8732/MyService.svc" Method="GetDataLoadOnDemand" />
</telerik:RadComboBox>
This is the method code in the WCF:
public RadComboBoxData GetTraderGroupsLoadOnDemand(RadComboBoxContext radComboContext)
{
// my implementation as in the documentation.
}
When i tried to debug the issue using IE debugger tool, i found this is the url that is being called from the web application is the following:
http://localhost:8732/MyService.svc/GetDataLoadOnDemand?context=%5B%7B%22Key%22%3A%22Text%22%2C%22Value%22%3A%22%22%7D%2C%7B%22Key%22%3A%22NumberOfItems%22%2C%22Value%22%3A0%7D%5D&callback=Sys._jsonp0
I'm using VS 2012 and the service is included in my solution so the wcf if not hosted in IIS but the development web server.
Waiting your help and support.
Appreciate it.