Topic: Can't pre-select options in Angular select dropdown

sigaostudios pro asked 6 years ago


After digging through the code it seems like it is impossible to pre-select options in any of your select drop downs.  When the options are read into the component they are filtered and a "selected" value is not checked for.  This is a serious, highly disappointing issue.  It effectively makes all of the select inputs completely useless for any web application that retrieves information from a database to display to users.    

Damian Gemza staff commented 6 years ago

Dear sigaostudios, Do you want to pre-select some option in our Multiple Material Select? If yes, it's easy to achieve this. Here's code which you should use in your case: https://mdbootstrap.com/angular/advanced/material-select/#default-value . Just use Multiple Select and then use code from selecting default value, and that's it. For me it works fine. Best Regards, Damian

sigaostudios pro commented 6 years ago

I don't believe the functionality in the example you linked to is available in 5.2.3, but i will check. Even so, our specific use case requires that we be able to pre-select multiple values on a Multiple Select component, which doesn't seem to have any documentation. After I upgrade to 6.0.0 I will attempt it again.

Damian Gemza staff commented 6 years ago

Dear sigaostudios, for me in 5.2.3 it was working fine. Please check on 6.0 and let me know. Best Regards, Damian


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Opened

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags