Filters property of DataSourceRequest not binding when Applying Filter

1 Answer 36 Views
Filter
Sean
Top achievements
Rank 1
Iron
Iron
Sean asked on 13 Sep 2023, 02:36 PM

Using the following script to build a Filter and DataSource.


When I click the Apply button I would expect the Filter Property in the method to be populated. See screen print below

    <script>
        $(document).ready(function () {
            var dataSource = new kendo.data.DataSource({
                transport: {
                    read: {
                        dataType: "json",
                        url: "/Home/Products_Read"
                    }
                },
                serverFiltering: true,
                pageSize: 4,
                schema: {
                    model: {
                        fields: {
                            ProductName: { type: "string" },

                        }
                    }
                }
            });

            $("#filter").kendoFilter({
                dataSource: dataSource,
                expressionPreview: true,
                applyButton: true,
                fields: [
                    { name: "ProductName", type: "string", label: "ProductName" },
                ],
                expression: {
                    logic: "or",
                    filters: [

                        { field: "ProductName", value: "Chai", operator: "contains" }
                    ]
                }
            });

        });
    </script>

 

 

  

1 Answer, 1 is accepted

Sort by
0
Sean
Top achievements
Rank 1
Iron
Iron
answered on 16 Sep 2023, 09:55 PM
I see they don't attempt to answer any forum questions once your subscription expires.
Tags
Filter
Asked by
Sean
Top achievements
Rank 1
Iron
Iron
Answers by
Sean
Top achievements
Rank 1
Iron
Iron
Share this question
or