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

Binding Grid to AMFPHP2 dataSource example

0 Answers 53 Views
Data Source
This is a migrated thread and some comments may be shown as answers.
Tirso
Top achievements
Rank 1
Tirso asked on 14 Jan 2012, 11:55 AM
After breaking my head for a whole day
Here is the code that is working well. I hope that you find it useful
Sorry for my English.

$("#grid").kendoGrid({
    dataSource: {
        type:"json",
        transport: {
            read: {                   
                dataType: "json",
                type: "POST"
            },
            parameterMap: function (options) {
               return JSON.stringify({"serviceName" : "ActoresPublicoService","methodName" : "getPaises","parameters" : []});
                }
            },
            schema: {
                model: {
                    fields: {
                        title: { type: "string" }
                      
                    }
                }
            }
        },
    height: 250,
    filterable: true,
    sortable: true,
    pageable: true,
});

 

                        

 

 

No answers yet. Maybe you can help?

Tags
Data Source
Asked by
Tirso
Top achievements
Rank 1
Share this question
or