error when enable load on demand in a combo box

2 posts, 0 answers
  1. Mostafa
    Mostafa avatar
    4 posts
    Member since:
    Sep 2012

    Posted 25 Jul 2013 Link to this post

    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" />



    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:


    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.

  2. Nencho
    Nencho avatar
    1812 posts

    Posted 31 Jul 2013 Link to this post

    Hello Mostafa,

    I noticed that you had configured the path to the web service as Path="http://localhost:8732/MyService.svc". Please consider using the approach, demonstrated in this documentation article. Instead of using the localhost, you should use the relative path in your project, as demonstrated in the article. In addition, I noticed that you had enabled the CheckBoxes functionality of the RadComboBox, which is a not supported scenario, when the LoadOnDemand mechanism is enabled.
    This limitation is described in this article.


    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top