Can RadScheduler works with Web API?

5 posts, 0 answers
  1. Rully
    Rully avatar
    1 posts
    Member since:
    Jun 2009

    Posted 04 Mar 2012 Link to this post

    Hi,

    I am looking at the RadScheduler control support with web services (as well as WCF services) and interested in trying using the latest Web API against the control. Can this be done?

    As a start I've done prototyping against the existing RadScheduler sample but unable to make it work. When I pointed the Web Service path to my Web API link, the system throws me the following error:

    Server Error in '/' Application.

    The remote server returned an error: (405) Method Not Allowed.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Net.WebException: The remote server returned an error: (405) Method Not Allowed.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [WebException: The remote server returned an error: (405) Method Not Allowed.]
       System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) +309
       System.Net.WebClient.UploadString(Uri address, String method, String data) +172
       System.Net.WebClient.UploadString(String address, String method, String data) +35
       Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +1072
    
    [Exception: An error occurred while requesting resources from the web service. Server responded with: "The requested resource does not support http method 'POST'."]
       Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +1430
       Telerik.Web.UI.RadScheduler.BindResourcesFromWebService() +135
       Telerik.Web.UI.RadScheduler.BindResources() +89
       Telerik.Web.UI.RadScheduler.PerformSelect() +141
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
       Telerik.Web.UI.RadScheduler.EnsureDataBound() +93
       Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +131
       Telerik.Web.UI.RadScheduler.CreateChildControls() +34
       System.Web.UI.Control.EnsureChildControls() +102
       System.Web.UI.Control.PreRenderRecursiveInternal() +42
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
    

    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

    Does this mean the RadScheduler does not support Web API?

    Note: I could not attach the solutions files as reference (attachment only asks for .gif, .jpg, .jpeg, .png) , so if you need me to post the file please let me know how to do this.

    Many thanks,

    Rully
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 06 Mar 2012 Link to this post

    Hi Rully,

    Yes, RadScheduler can be populated with Web Service or WCF service. You can download a working stand-alone sample from here -

    http://www.telerik.com/community/code-library/aspnet-ajax/scheduler/filter-appointments-by-sending-additional-information-to-the-web-service-and-the-provider.aspx.


    Greetings, Peter
    the Telerik team
    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 their blog feed now.
  3. Rully
    Rully avatar
    1 posts
    Member since:
    Jun 2009

    Posted 12 Mar 2012 Link to this post

    Hi Peter,

    Sorry, I wasn't probably clear with my question. What I was meant to ask is if the Telerik RadScheduler will support the ASP.NET Web  API framework as referenced in the link below:

    http://www.asp.net/web-api

    Regards,

    Rully
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 15 Mar 2012 Link to this post

    Hi Rully,

    Thank you for clarifying. That's an interesting question indeed. Currently, we haven't experimented with the Web API framework, but we will consider it for the future.

    Kind regards,
    Peter
    the Telerik team
    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 their blog feed now.
  5. Brian
    Brian avatar
    28 posts
    Member since:
    Dec 2008

    Posted 12 Sep 2012 Link to this post

    Any updates on using Web API?
Back to Top