 var ServiceURL = //URL address where data from remote server is coming in JSON format;


                $(document).ready(function () {
                   
                    $.ajax({
                        crossDomain: true,
                        type: "GET",
                        contentType: "application/json; charset=utf-8",
                        url: ServiceURL,
                        data: { EMail: 'xyz@abc.com', Password: 'a', LoginDateTime: '2013-07-17 11:52:44.443' },
                        dataType: "jsonp",
                        success: onDataReceived

                    });

                });

                function onDataReceived(data) {
                   
                   $("#grid").kendoGrid({
                  
                        dataSource: data,
                        grouping: true,
                        serverPaging: false,
                        selectable: "row",
                       
                        pageSize: 3,
                        
                        schema: {
                                                    

                            model: {
                                id: "_workOrderID",
                                fields: {
                                    WorkOrderID: { type: "number" },
                                    WorkOrderNumber: { type: "string" },
                                    ExpStartDate: { type: "string" },
                                   status:{type :"string"},
                                    IsInvoiced: { type: "boolean" }

                                }
                            }
                        },

                        serverFiltering: true,
                        serverSorting: true,
                        pageable: {
                            numeric: false,
                            refresh: true,
                            pageSizes: [5,8, 10],
                            previousNext: true,
                            input: false,
                            info: true
                        },
                        height: 250,
                        filterable: true,
                        sortable: true,

                        columns: [{
                            field: "_workOrderID",
                            title:"WorkOrder ID",
                            filterable: false,
                            width: 160
                        },
                 {
                     field: "_workOrderNumber",
                     title: "WorkOrderNumber",
                     width: 230

                 },
                            {

                                field: "ExpStartDate",
                                title: "Start Date",
                                width: 150,
                                format: "{0: yyyy-MM-dd HH:mm:ss}"
                            },


                            {
                                field: "_woStatus",
                                title: "WO Status",
                                width: 150
                              
                            },

                            {
                                field: "_isInvoiced",
                                title: "IsInvoiced",
                                width: 150
                            }

                        ]


                    });

                    }