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

Sorting and filtering not working

0 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 12 Oct 2018, 08:07 AM

Hi

i use a kendoGrid to provide data in my .net webfrontend. The data is shown correct, but sorting and filtering is nor working. But why?

<script>
                $(document).ready(function () {
                    $("#grid").kendoGrid({
                        dataSource: {
                            type: "json",
                            transport: {
                                read: "fabico1.json"
                            },
                            schema: {
                                model: {
                                    fields: {
                                        Artikel: { type: "string" },                                       
                                        Bez: { type: "string" },
                                        Menge: { type: "number" },
                                        Einh: {type: "string"}
                                    }
                                }
                            },
                            pageSize: 30,
                            serverPaging: true,
                            serverFiltering: true,
                            serverSorting: true
                        },
                        height: 430,
                        filterable: true,
                        sortable: true,
                        pageable: true,
                        columns: [{
                            field: "Artikel",
                            width: 150,
                            filterable: true
                        },
                            {
                                field: "Bez",
                            },
                        {
                            field: "Menge"
                            },
                        {
                            field: "Einh",
                            width: 150
                        }
                        ]
                    });
                });
            </script>

No answers yet. Maybe you can help?

Tags
Grid
Asked by
ITA
Top achievements
Rank 1
Share this question
or