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

Grid filter ui functions never get called.

1 Answer 62 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 29 Jan 2013, 11:34 AM
I am trying to get my grid filter drop downs bound to my data sources by following the demos but my ui functions are not getting called.

I have cut things down to the smallest subset of data I can and still my filters are just the stock ones and my functions never seem to get triggered.

$("#searchResults").kendoGrid({
            dataSource: seachResultsDataSource,
            filterable: {
                extra: false,
                operators: {
                    string: {
                        startswith: "Starts with",
                        eq: "Is equal to",
                        neq: "Is not equal to"
                    }
                }
            },
            columns : [                   
                    {
                        title: "Area",                       
                        field: "AreaID",
                        filterable: {
                            ui: areaFilter
                        }
                    }]
});
 
// Never gets called.
function areaFilter(element) {  
    kendoHelper.BindDropDownList(element, dataSources.areaDataSource);
}
The helper function used works perfectly everywhere else I use it and as it is break points indicate the areaFilter is never called to do anything anyway.  Is there some obvious error in this?  Futher - when I do just enter data into the type in box it doesn't get sent to the web server, only the paging options make it, the filters are lost somewhere along the way.

1 Answer, 1 is accepted

Sort by
0
Travis
Top achievements
Rank 1
answered on 30 Jan 2013, 01:40 PM
Resolved.  It was something related to the version I was running.  
Tags
Grid
Asked by
Travis
Top achievements
Rank 1
Answers by
Travis
Top achievements
Rank 1
Share this question
or