4 Answers, 1 is accepted
0
Jayesh Goyani
Top achievements
Rank 2
answered on 08 Aug 2013, 05:37 AM
Hello,
Please check below link.
RadGrid with WCF Rest Service
Let me know if any concern.
Thanks,
Jayesh Goyani
Please check below link.
RadGrid with WCF Rest Service
Let me know if any concern.
Thanks,
Jayesh Goyani
0
Nicolas
Top achievements
Rank 1
answered on 08 Aug 2013, 02:18 PM
I am getting the following error from your demo code:
Server Error in '/' Application.
Parser Error Message: The base class includes the field 'RadCodeBlock1', but its type (Telerik.Web.UI.RadCodeBlock) is not compatible with the type of control (Telerik.Web.UI.RadCodeBlock).
Source Error:
Source File: /RestServiceWithRadGrid.aspx Line: 9
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044
Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.Parser Error Message: The base class includes the field 'RadCodeBlock1', but its type (Telerik.Web.UI.RadCodeBlock) is not compatible with the type of control (Telerik.Web.UI.RadCodeBlock).
Source Error:
|
Source File: /RestServiceWithRadGrid.aspx Line: 9
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18044
0
Nicolas
Top achievements
Rank 1
answered on 10 Aug 2013, 01:27 PM
Hello Jayesh:
could you please change the code(implement REST web service) so that I may be able to display data from sql server. I used teleriks built in web part and displayed the data, but I need to know how to display data as a rest service from sql database. Any questions please let me know. This code works fine and displays data from customer table in my sql database, but I need rest service.
Thanks
Nicolas
could you please change the code(implement REST web service) so that I may be able to display data from sql server. I used teleriks built in web part and displayed the data, but I need to know how to display data as a rest service from sql database. Any questions please let me know. This code works fine and displays data from customer table in my sql database, but I need rest service.
Thanks
Nicolas
0
Hello Nicolas,
Attached are a couple of samples - one binding the grid to a restful ODATA service; the other - to a wcf service. Hope it helps.
Tsvetoslav
Telerik
Attached are a couple of samples - one binding the grid to a restful ODATA service; the other - to a wcf service. Hope it helps.
Regards,
Tsvetoslav
Telerik
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.