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

Filter Row Autocomplete

1 Answer 164 Views
Grid
This is a migrated thread and some comments may be shown as answers.
ASAP Developer
Top achievements
Rank 1
ASAP Developer asked on 14 Aug 2014, 08:50 PM
I'm trying to get some information regarding how to go about setting up a grid with the new filter row functionality so that the filter textbox has autocomplete functionality.

I was taking a look at the following example in the demo section: http://demos.telerik.com/kendo-ui/grid/filter-row , unfortunately I'm not sure how I can go about setting up the server side to get the autocomplete to work because there aren't any examples of how to go about doing it.

I decided to try a different approach and am defining a separate datasource for the filter field but am running into issues going this route too:
          field: 'Name',
        title: 'Name',
        filterable: {
            cell: {                                  
                 dataSource: new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: ColumnFilterQueryUrl,
                            dataType: 'json',
                            data: {
                                columnName: 'Name',
                                tableName: 'Header',
                                queryValue: $('span[data-field="Name"]').find('input')[0].value
}
                        }
                    }
                }), 
                operator: "contains"
}
        }

Are there any complete examples of how to go about implementing autocomplete within the new filter row functionality?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 18 Aug 2014, 08:30 AM
Hi,

The autocomplete of the filter row will work without any custom dataSource configurations. It will bind its own dataSource with the elements of the column that is being filtered and will provide the filtering functionality with autocomplete out of the box - as you see in the demo that you linked.

Regards,
Kiril Nikolov
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
ASAP Developer
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or