I'm trying to use serverfiltering for autocomplete in Kendo UI (ASP.NET 5, MVC6) Due to fact that Autocomplete isn't available in MVC Wrapper, i had to use the code below:

<script>
    var dataSource = new kendo.data.DataSource({
        serverFiltering: true,
        serverOperation: true,
        type: "aspnetmvc-ajax",
        transport: {
            read: {
                url: "@Url.Content("~/api/Get")",
                type: "GET"
            }
        },
        schema: {
            data: "Data",
            total: "Total"
        }
    })

    $("#@Model.Name").kendoAutoComplete({
        placeholder: "@Model.Watermark",
        minLength: 3,
        filter: "contains",
        dataSource: dataSource

    });
</script>

The problem is that querystring send to controller looks like this : ?sort=&group=&filter=

So it doesn't include any filter information

On serverside im trying to map it to DataSourceRequest

Related posts

Recent Viewed