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

How to get message back from Update of ClientDataSource

1 Answer 54 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Giorgos asked on 26 May 2020, 06:22 AM

I'm using the following ClientDataSource to bind a radgrid. 

<telerik:RadClientDataSource runat="server" ID="clientDataSourceGrid">
    <ClientEvents OnCommand="dataSourceCommand" OnRequestStart="requestStart"  OnRequestEnd="requestEnd"  />
            <Select Url="../../api/apd" RequestType="Get" />
            <Insert Url="../../api/apd" RequestType="Post" />
            <Update Url="../../api/apd" RequestType="Put" />
            <Delete Url="../../api/apd" RequestType="Delete" />
        <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.




1 Answer, 1 is accepted

Sort by
Telerik team
answered on 28 May 2020, 12:53 PM

Hi ,


If you throw an error or return something invalid, most probably you will be able to use the OnRequestFailed event handler for this requirement:

I hope this will prove helpful.


Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question