I'm using the following ClientDataSource to bind a radgrid.
<telerik:RadClientDataSource runat="server" ID="clientDataSourceGrid"> <ClientEvents OnCommand="dataSourceCommand" OnRequestStart="requestStart" OnRequestEnd="requestEnd" /> <DataSource> <WebServiceDataSourceSettings> <Select Url="../../api/apd" RequestType="Get" /> <Insert Url="../../api/apd" RequestType="Post" /> <Update Url="../../api/apd" RequestType="Put" /> <Delete Url="../../api/apd" RequestType="Delete" /> </WebServiceDataSourceSettings> </DataSource> <Schema> <Model ID="APDId"> <telerik:ClientDataSourceModelField FieldName="AM" DataType="String" />
The Web API action to do the update is as follows:
public void PutAPD(int id, APD apd) { // Do the update .... // How can I return a message in case something goes wrong in the update? }My question is: how can I return a message from PutAPD back to the client? I want to be able to inform the user in case the update failed.
My
