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

Error while doing remote paging/Sorting

1 Answer 138 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anilesh
Top achievements
Rank 1
Anilesh asked on 15 Jun 2012, 09:11 PM
HI I am getting error object does not support this property in kendo.ui.all.js in line d.transport=new n.data.transports[a.type] when I try to get Json data from server.
If i use odata in type highlighted bold below error not come but data is not bind to grid.

This is happening when I use latest beta version of kendo.all.min.js Please see the attached image

 Here is my code

$(self.options.element).kendoGrid({
                dataSource: {
                    type: "json",
                    serverPaging: true,
                    serverSorting: true,
                    serverFiltering: true,
                    allowUnsort: true,
                    pageSize: 10,
                    transport: {
                    read: {
                        url: self.options.dataURL,   //URL to get data
                        dataType: "json",
                        type: "POST",
                        contentType: "application/json; charset=utf-8",
                        data: {}
                    },                        
                     parameterMap: function (options) {
                            options.portfolioIDs = self.options.portfolioID;
                            return JSON.stringify(options);
                    }
                    },
                    schema: {                       
                        data: "d.data",
                        total: "d.__Count"
                    }
                },
                height: 600,
                resizable: true,
                reorderable: true,
                filterable: true,
                sortable: true,
                pageable: true,
                columns: self._contractConfig.generatedCols //Object with column information

            });

1 Answer, 1 is accepted

Sort by
0
Gurpal
Top achievements
Rank 1
answered on 12 Jul 2012, 06:05 AM
Hi Please include 

refrence to kendo.aspnetmvc.min.js below kendo.all.min.js

it will resolve your problem

with regards
gurpal
Tags
Grid
Asked by
Anilesh
Top achievements
Rank 1
Answers by
Gurpal
Top achievements
Rank 1
Share this question
or