Hello,
I will try to outline the problem we are facing as well as I can. Basically we are calling multiple data retrievals to populate several Dropdownlists in a div using javascript. We are confident that the queries are returning the data properly (we console log the result and it is the same everytime) but once we set the data using this line of code:
($("#TowStatusInput").ejDropDownList().data("ejDropDownList")).selectItemByText(e.result[0].Description);
Or something similar (we have multiple inputs), sometimes the dropdownlist is populated and other times the data isn't selected at all. We were wondering if it has something to do with a race condition, because it works if we introduce a setTimeout before the function call with 1000 milliseconds. Any help with this issue would be greatly appreciated, thank you.