This is a migrated thread and some comments may be shown as answers.
How to capture Success or Error when using dataSource object for remote service
2 Answers 114 Views
This is a migrated thread and some comments may be shown as answers.
Naunihal
Top achievements
Rank 1
Naunihal asked on 20 Dec 2011, 07:34 PM
I am trying to debug a call to WCF RIA Service that return JSON data. when using .Ajax it works fine, but does not work when using it for Kendo Grid. I am trying to find out if there are any callbacks for Success or Error for dataSource ?

also Additionally i want to use Paging,sorting and Filtering on server, do you have sample which does it using
 WCF RIA service ?


 <script type="text/javascript">
        $(document).ready(function () {
            $("#grid").kendoGrid({
                dataSource: {
                    type: "json",
                    transport: {
                        read: "http://localhost:50424/Services/Silverlight_WCF_RIA-Web-MyDomainService.svc/JSON/GetSecurity_Users"
                    },
                    schema: {
                        model: {
                            fields: {
                                First_Name: { type: "string" },
                                Last_Name: { type: "string" },
                                Email_Address: { type: "string" }
                            }
                        }
                    },
                    pageSize: 10,
                    serverPaging: true,
                    serverFiltering: true,
                    serverSorting: true
                },
                height: 250,
                filterable: true,
                sortable: true,
                pageable: true,
                columns: [{
                    field: "First_Name",
                    width: 90,
                    title: "First Name"
                }, {
                    field: "Last_Name",
                    width: 90,
                    title: "Last Name"
                }, {
                    field: "Email_Address",
                    title: "Email"
                }
                ]
            });
        });
    </script>

2 Answers, 1 is accepted

Sort by
0
Joshua
Top achievements
Rank 1
answered on 25 Feb 2012, 04:17 AM
I have tried everything i can think of and cannot make this work either.
0
Mike
Top achievements
Rank 1
answered on 28 Feb 2012, 10:56 PM
http://www.kendoui.com/forums/framework/data-source/how-to-get-the-result-true-or-false-of-an-operation-create-update-or-delete-from-the-server.aspx
Asked by
Naunihal
Top achievements
Rank 1
Answers by
Joshua
Top achievements
Rank 1
Mike
Top achievements
Rank 1
Share this question
or