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

[Solved] Trying to bind grid to Web Service

0 Answers 16 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andreas Kviby
Top achievements
Rank 1
Andreas Kviby asked on 10 Nov 2010, 01:27 AM
I have hundreds of web services I need to present in grid like lists so what would be better to user Teleriks MVC Extensions for that work? I tied everything up and it seemed to run ok but then it complains that the URL does not return JSON from the web service. I know it doesn't return JSON it returns XML. 

So how in the --- do I get this to work? I need to get all thoose web service calls up and running and I have struggled but believe me, I have given up now.

The code is below.

    <h3>Bound to ASMX Web Service</h3>
<%= Html.Telerik().Grid<icportal.JSBService.GetOrderResponse>()
        .Name("AsmxGrid")
        .Columns(columns =>
        {
            columns.Bound(o => o.Order.OrderNumber).Width(100);
            columns.Bound(o => o.Order.OrderStatus ).Width(200);
            columns.Bound(o => o.Order.CustomerId );
            columns.Bound(o => o.Order.OrderDate ).Format("{0:MM/dd/yyyy}").Width(120);
        })
         .DataBinding((dataBinding => dataBinding.WebService().Select("http://localhost:9000/jsb-ws/ESales/GetOrders?CustomerId=10004").ToString()))
        .Sortable()
        .Pageable()
        .Groupable()
        .Filterable()
        .Scrollable()
%>
Tags
Grid
Asked by
Andreas Kviby
Top achievements
Rank 1
Share this question
or