after update values from backend - when ever open igx combo box values display empty.
Hello Sarathkumar,
Thank you for answering my questions and providing a code snippet!
Regarding the version, please keep in mind that version 8.2.17 is considered retired and with this in mind I would suggest updating your application to a newer and supported version (currently 12.3.x, 13.2.x, and 14.0.x) in order to take advantage of all new features, functionalities, and developer support. For more information, you can refer to our official Update guide.
Furthermore, regarding your query, I have looked into the provided code snippet and prepared a sample with a similar configuration. However, as there are few custom variables for which I have no knowledge of, i.e., this.testvall, this.selectedquery, checkboxinactive, I cannot tell for sure what could be the reason for this behavior.
Here could be found my sample where I have used a similar configuration for adding new items to the combo’s data source array. However, it is based only on the provided code snippets and on my side, I cannot reproduce this behavior and the data is added successfully.
Please test it on your side and check if it has a similar configuration as yours. If yes, I would strongly encourage you to try and modify it with any important aspects from your setup (mainly in the .ts file) in order to reproduce the issue.
In order to modify it, you should click the “Fork” button, apply your code wherever needed, save the changes, copy the link to it and attach the link to this forum thread.
Thank you for your cooperation. Looking forward to your reply.
Sincerely,Riva IvanovaEntry Level Software Developer
I have tested the provided sample data on my side, and I was not able to reproduce the described behavior.
Having this in mind, there are a few questions that I would like to ask you in order to provide you with a solution as soon as possible.
Additionally, if the behavior cannot be replicated, please feel free to provide your own sample. Remove any external dependencies and code that is not directly related to the issue, zip your application and attach it in this forum thread.
Thank you very much for your cooperation on this matter. Looking forward to your reply.
Hi Riva,
Thanks for the update. Please find the below sample data
sample combo box:
if possible can you please schedule meeting
Regards,
Sarathkumar
Thank you for following up and answering my questions!
After further investigating this matter, what I could say is that as the isolated sample from my previous message seems to be working correctly and cannot reproduce the issue, it is hard to tell what the cause for this behavior could be without having a working sample on my side which I can debug.
Furthermore, you have mentioned that you are assigning a new set of values and since I am not sure how and when this is performed on your side, I have prepared another sample where I am fetching remote data, binding it to the IgxCombo’s data and then after a few seconds the data is changed with new values. The result is the same and everything works as expected. This could be observed in the below attachment:
Additionally, you have mentioned that this behavior is occurring when the data is updated. Does this mean that when the data is bound initially everything works properly and the values are displayed as expected?
If the displayKey and valueKey properties are set accordingly, there is no reason for it not to work properly even after updating the values. However, as previously mentioned, without having a sample that I can debug on my side it is almost impossible to investigate this further, as all assumptions would not be well-grounded.
Additionally, I have noticed that you have provided the configuration of the combo, however, it would be extremely helpful if you could provide the structure of your data, populated with some test records, as well as explain how the values are updated on your side.
Also, I would strongly encourage you to try and modify the provided by me sample or provide a sample app of your own that reproduces the described behavior as it is going to be very helpful in finding the root cause of this behavior.