BoldDesk®Customer service software offering ticketing, live chat, and omnichannel support, starting at $49/mo. for 10 agents. Try it for free.
I have a problem with multiselectdropdown component.
I'm trying to load selected options into a multiselect.
When it's in the hook ngOnInit (also i tried with ngAfterViewInit), i get data from an API using HttpClient class and that data is saved in operatorList variable. That works well, but if i try to get an ID from the list an try to select an option of the list, that doesn't works, and there's no any message of error in the console.
But if i try to do the same process when the component is initialized, executing the same lines of code with a button and that works well.
I would like to know about how solve this issue, if the component has any hook, state or propertie to know when Multiselect is initialized and i can select options
Hi LUZ MARY VALENCIA CORREA,
Greetings from Syncfusion support!
We have validated your query and prepared a simple sample based on your scenario. We checked the issue but were unable to replicate it on our end. Here is the sample for your reference:
In the sample, we used the ngAfterViewInit
method to set the values to the component.
To assist you more effectively, could you please share a runnable sample that replicates the issue on our end? Alternatively, you can modify the provided sample to replicate your issue. This will enable us to provide you with a more prompt and accurate solution.
The error occurs when a request is made to an API to load the information from the multiselect. When the request is executed and is waiting for a response, when the response arrives, the same procedure of selecting the values in the multiselect is carried out, at this point is where the error arises, it does not load the information.
The error occurs when a request is made to an API to load the information from the multiselect. When the request is executed and is waiting for a response, when the response arrives, the same procedure of selecting the values in the multiselect is carried out, at this point is where the error arises, it does not load the information
Hi Juan Gabriel Giraldo
We sincerely apologize for the inconvenience caused. Upon validating the reported issue, we request you to share a runnable sample that replicates your issue so that we can provide you with a more accurate solution without any further delay.
Could you please share the runnable sample? If possible, please also provide a video illustration of the issue you are facing. These details will help us give you a prompt solution. Thank you for your understanding and cooperation.