This is a migrated thread and some comments may be shown as answers.

Can RadScheduler works with Web API?

4 Answers 87 Views
AJAX and Web 2.0
This is a migrated thread and some comments may be shown as answers.
Rully
Top achievements
Rank 2
Rully asked on 05 Mar 2012, 04:53 AM
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

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 06 Mar 2012, 04:22 PM
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.
0
Rully
Top achievements
Rank 2
answered on 12 Mar 2012, 10:08 AM
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
0
Peter
Telerik team
answered on 15 Mar 2012, 03:30 PM
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.
0
Brian
Top achievements
Rank 2
answered on 12 Sep 2012, 06:22 PM
Any updates on using Web API?
Tags
AJAX and Web 2.0
Asked by
Rully
Top achievements
Rank 2
Answers by
Peter
Telerik team
Rully
Top achievements
Rank 2
Brian
Top achievements
Rank 2
Share this question
or