I get errors when i try to use a dataSource for multi checkbox:
Works:
Doesn't work:
Console output:
"Uncaught TypeError: Cannot read property 'model' of undefined"
With the working snippet i have another problem:
The multi checkbox filter is correctly filled with values from the given URL, but if i click on button "Filter" nothing happens. There's no error, it just doesn't fire up the main request of the grid.
The gridconfig (model and columns are strongly reduced):
Any help would be great!
Works:
filterable: { multi: true, dataSource: new kendo.data.DataSource({ transport: { read: { url: Routing.generate('some_url'), dataType: 'json' } } })}Doesn't work:
filterable: { multi: true, dataSource: { transport: { read: { url: Routing.generate('some_url'), dataType: 'json' } } }}Console output:
"Uncaught TypeError: Cannot read property 'model' of undefined"
With the working snippet i have another problem:
The multi checkbox filter is correctly filled with values from the given URL, but if i click on button "Filter" nothing happens. There's no error, it just doesn't fire up the main request of the grid.
The gridconfig (model and columns are strongly reduced):
var productModel = kendo.data.Model.define({ id: 'id', fields: { 'someField': {type: 'string'} }});var productColumns = [ {field: "someField", title: "some field", filterable: { multi: true, dataSource: { transport: { read: { url: Routing.generate('some_url'), dataType: 'json' } } } } }];$scope.mainGridOptions = { columnMenu: true, columns: productColumns, dataSource: { transport: { read: { url: Routing.generate('get_products'), dataType: 'json', cache: false } }, pageSize: 50, serverPaging: true, serverFiltering: true, serverSorting: true, schema: { total: 'total', data: 'data', model: productModel } }, /*filterable: { extra: false, mode: "menu, row" },*/ filterable: true, groupable: false, height: $('.product-index-grid').height(), pageable: { pageSizes: [25, 50, 100, 250], buttonCount: 5, refresh: true }, reorderable: true, resizable: true, scrollable: true, sortable: true};Any help would be great!