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

[Solved] Cell filtering not working

1 Answer 206 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 16 Dec 2014, 09:08 AM
Dear Kendo,
Please tell my why when i type in a ship name the auto complete works fine but when i hit enter I don't actually get the results i filtered by? Also when i clear the filter I don't get all the items either! I took my code and adapted it to use a kendo example resource for the purpose of understanding the problem.

See the example here: http://dojo.telerik.com/AHoN

Javascript code:
01.$("#grid").kendoGrid({
02.    dataSource: new kendo.data.DataSource({
03.        data: undefined,
04.        serverPaging: false,
05.        pageSize: null,
06.        pageable: false,
07.        filter: null,
08.        serverSorting: false,
09.        serverFiltering: false,
10.        transport: {
11.            read: {dataType: "json", url: "http://demos.telerik.com/kendo-ui/service/Northwind.svc/Orders"}
12.        },
13.        sort: true,
14.        schema: {
15.            total: "count",
16.            data:function (response){
17.            console.log(response.d);
18.            return response.d;
19. 
20.          },
21.            model: {
22.                ShipName: {
23.                    type: "string"
24.                }, datatype: {
25.                    type: "string"
26.                }, description: {
27.                    type: "string"
28.                }, module: {
29.                    type: "string"
30.                }, name: {
31.                    type: "string"
32.                }, value: {
33.                    type: "string"
34.                }
35.            }
36.        }
37.    }),
38.    columns: [{
39.        attributes: {
40.            style: "text-align: left;"
41.        },
42.        field: "ShipName",
43.        filterable: {
44.            cell: {
45.                operator: "contains",
46.                suggestionOperator: "contains"
47.            }  
48.        },
49.        format: undefined,
50.        title: "Key",
51.        type: "string",
52.        width: 150
53.    }],
54.    filterable: {
55.        mode: "row"
56.  },
57.    resizable: true,
58.    reorderable: true,
59.    sortable: {
60.        allowUnsort: false,
61.        mode: "single"
62.    },
63.    scrollable: {
64.        virtual: false
65.    },
66.    pageable: false,
67.    selectable: false,
68.    rowTemplate: null
69. 
70.});

Any help would be sooo much appreciated. I already wasted a day banging my head against the wall.

Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 18 Dec 2014, 07:43 AM
Hi Markus,

This happens due to the pageSize is set to null - leaving it unspecified or setting it to a number of your choice should solve the issue, as seen here.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Markus
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or