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

Request faild using RadClientDataSource in Radgrid

4 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 16 Dec 2014, 06:14 AM
Hi,

I am using RadClientDatasource for Radgrid. i am created WCF page for retrieving data. but while adding WCF page name into Base URL getting request failed message. please check the attachment. please let me know do we need to configure anything. please help me ASAP

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 19 Dec 2014, 11:52 AM
Hello,

Most probably you received this error because the URL is not correct. You should verify that the URL you type in the designer field is the correct one to the service. For example you can open the service in the browser and check the URL in the browser's address bar.  
The URL would be the same as the service name (e.g. EditingWCFService.svc) only in case the service and the page files are in the same folder in the project. If the service is located in a different folder it should also be a part of the URL.
Here are the settings from the online example demonstrating the markup setup in case the service and the page are in the same folder.

<DataSource>
   <WebServiceDataSourceSettings BaseUrl="EditingWcfService.svc/">
         <Select Url="GetCustomers" DataType="JSON" />
      <Update Url="UpdateCustomers" DataType="JSON" />
      <Insert Url="InsertCustomers" DataType="JSON" />
      <Delete Url="DeleteCustomers" DataType="JSON" />
   </WebServiceDataSourceSettings>
</DataSource>


Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Dhamodharan
Top achievements
Rank 1
answered on 19 Dec 2014, 01:19 PM
Hi Pavlina,

Now the WCF fires and binding data correctly. inserting also working fine. but while updating and deleting we are facing issue like "Value cannot be null.
Parameter name: type"

Please check attached image and let us know.

Thanks in Advance,
Dhamu
0
Dhamodharan
Top achievements
Rank 1
answered on 19 Dec 2014, 01:21 PM
This is what we are getting data in error occured line.

[{"__type":"ServiceCustomer:#","att_typ_code":"HR_APPLI rwrwer","att_typ_id":214,"description":"APPLICATION FOR EMPLOYMENT","secure_flag":"Y","show_in_hierarchy":"N"}]

Please give your advise for this one.


Thanks again,
Dhamu
0
Dhamodharan
Top achievements
Rank 1
answered on 19 Dec 2014, 01:53 PM
Hi,

I missed following code into class file.

[DataMember]
public string __type { get; set; }

Thank you for your help.

Dhamu
Tags
Grid
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Dhamodharan
Top achievements
Rank 1
Share this question
or