question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when using Filters.multipleSelect in Slickgrid 1.x

See original GitHub issue

Hi there! Thanks for the great job you have done for Slickgrid. It’s a pleasure to use it!

I’m submitting a bug report

  • Library Version: I’m using angular-slickgrid v1.7.6
  • Browser: Chrome 70

  • Angular: @angular/cli 7.0.3

  • Language: TypeScript 3.1.4

Current behavior: I’m getting an error in the console when I’m using the Filters.multipleSelect :

Error: Uncaught (in promise): Error: Something went wrong while trying to pull the collection from the "collectionAsync" call in the Select Filter, the collection is not a valid array.
Error: Something went wrong while trying to pull the collection from the "collectionAsync" call in the Select Filter, the collection is not a valid array.
    at MultipleSelectFilter.push../node_modules/angular-slickgrid/esm5/angular-slickgrid.js.SelectFilter.renderDomElementFromCollectionAsync (angular-slickgrid.js:1592)
    at MultipleSelectFilter.<anonymous> (angular-slickgrid.js:1573)
    at step (tslib.es6.js:97)
    at Object.next (tslib.es6.js:78)
    at fulfilled (tslib.es6.js:68)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388)
    at Object.onInvoke (core.js:14191)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138)
    at zone.js:872
    at MultipleSelectFilter.push../node_modules/angular-slickgrid/esm5/angular-slickgrid.js.SelectFilter.renderDomElementFromCollectionAsync (angular-slickgrid.js:1592)
    at MultipleSelectFilter.<anonymous> (angular-slickgrid.js:1573)
    at step (tslib.es6.js:97)
    at Object.next (tslib.es6.js:78)
    at fulfilled (tslib.es6.js:68)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388)
    at Object.onInvoke (core.js:14191)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138)
    at zone.js:872
    at resolvePromise (zone.js:814)
    at zone.js:724
    at fulfilled (tslib.es6.js:68)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:388)
    at Object.onInvoke (core.js:14191)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:387)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:138)
    at zone.js:872
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:421)
    at Object.onInvokeTask (core.js:14182)

My code:

this.columnDefinitions = [
// ... others classic columns ...
{ id: 'status', name: 'Status', field: 'status', sortable: true, filterable: true,
  filter: {
   collection: [
    { value: '', label: 'All' },
    { value: 'RELAUNCHED', label: 'Relaunched' },
    { value: 'IN_PROGRESS', label: 'In progress' },
    { value: 'FAILED', label: 'Failed' },
    { value: 'DONE', label: 'Done' }
   ],
   model: Filters.multipleSelect
  }
 }
];

Expected/desired behavior: I don’t understand why the error is talking about “collectionAsync”… I’m using “collection” and it is a valid Array. When I use the multipleSelect in my page it’s working, but as a singleSelect. Do you have any idea where this is coming from? Is it working for you?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ghiscodingcommented, Nov 14, 2018

Finally finished testing and coding the Extension rewrite, you can see more info here This also includes the fix for the issue you reported, it was released under NPM version 1.8.0, so go try it out

Thanks for the feedback

0reactions
EfkanKnzcommented, Nov 12, 2018

Ok, no worries, I understand.

Yes sure 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

In Angular Slick grid Multi select field is not able to filter
I am using angular slick grid 2.25.1 Version and I Have migrated this version from 2.19.0. I have fixed the compilation error while...
Read more >
angular-slickgrid - UNPKG
The CDN for angular-slickgrid. ... On a backend service api error, we will run the \"onError\" if there is 1 provided or just...
Read more >
angular-slickgrid - npm
Angular-Slickgrid works with all Bootstrap versions, you can see a demo of each one below. There are also 2 new styling Themes, ...
Read more >
JQuery not defined throwing error after installing angular ...
First let me clear one thing I have gone though ... Installed angular slickGrid npm i angular-slickgrid. Added required css and js in ......
Read more >
Angular (forked) - StackBlitz
Angular slickgrid multipleSelect example on cell array values.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found