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

filterable with foreign key

1 Answer 143 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 10 Nov 2015, 12:56 PM

Hi,

I am having problems getting the grid filter for a foreign key column working with autocomplete.

"columns": [
    {
        "title": "Datum",
        "field": "Datum",
     }, {
        "field": "ArtikelId",
        "values": stammdatenService.getData("Artikel"),
        "editor": stammdatenService.artikelEditor,
        "filterable": {
            "ui": function(element) {
                element.kendoAutoComplete({ datasource: stammdatenService.getData('Artikel') });
            }
        },
  
// 3. GRID FEATURES
"pageable": true,
"sortable": true,
"scrollable": true,
"filterable": {
    extra: false,
    operators: {
        string: {
            contains: "Beinhaltet",
             startswith: "Beginnt mit",
            doesnotcontain: "Beinhaltet nicht",
        },
        date: {
            eq: "Ist gleich",
            le: "Bis",
            ge: "Ab",
        },
    }
},
 

 The filter is ​only showing a standard dropdown with data from stammdatenService.getData("Artikel").

How can I get a foreign key column get working with autocomplete filter?

 

Thank you!

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 12 Nov 2015, 10:18 AM

Hello Christian,

 

I am afraid that the foreign key columns does not allow to customize the filter UI.  Only the default one (DropDownList widget) could be used with the foreign key columns. 

 

Regards,
Boyan Dimitrov
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
Christian
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or