This is a migrated thread and some comments may be shown as answers.
Basic Usage
1 Answer 68 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
SANJAY asked on 23 Jun 2014, 03:44 AM
I have a webapi running on

When I run the api in webbrowser I get desired result
I have checked the api in Fiddler and I get json data

When I execute your example page
      <telerik:RadImageGallery runat="server" ID="RadImageGallery1" Height="600px" Width="800px"
        DataImageField="ImageUrl" DataThumbnailField="ThumbUrl" DataTitleField="Title">
                <NextImagesAnimation Type="VerticalSlide" />
                <PrevImagesAnimation Type="VerticalSlide" />

    <telerik:RadClientDataSource runat="server" ID="RadClientDataSource1"  >
            <WebServiceDataSourceSettings BaseUrl ="" >
                <Select Url=""  RequestType="Get"  DataType="JSON"   />
        <Schema DataName="D" >
                <telerik:ClientDataSourceModelField FieldName="ImageUrl" DataType="String" />
                <telerik:ClientDataSourceModelField FieldName="ThumbUrl" DataType="String" />
                <telerik:ClientDataSourceModelField FieldName="Title" DataType="String" />
                 <telerik:ClientDataSourceModelField FieldName="Description" DataType="String" />
        <ClientEvents  OnRequestFailed="tst"  OnRequestStart="b" OnDataParse="c" />

<script type="text/javascript">
    function tst(){
    function b() {
    function c() {

I get a RequestFailed.

1 Answer, 1 is accepted

Sort by
Hristo Valyavicharski
Telerik team
answered on 25 Jun 2014, 04:04 PM
Hi Sanjay,

Your settings are incorrect:
<telerik:RadClientDataSource runat="server" ID="RadClientDataSource1">
              <WebServiceDataSourceSettings BaseUrl="">
                  <Select Url="aa" RequestType="Get" DataType="JSON" />

But at the moment your web api controller blocks cross domain requests.
I'm getting the following error when I call it:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at This can be fixed by moving the resource to the same domain or enabling CORS.

Hristo Valyavicharski

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.

Asked by
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question