Hi guys,
I'm having a problem adding an item to the dropdownlist, the situation is as follows:
I have the following component in my app:
<ejs-dropdownlist id="GroupCode" placeholder="@localizer["SelectGroup"]" query="@query" allowFiltering="true" >
<e-data-manager adaptor="UrlAdaptor" url=@Url.Action("GetGroups","Administration") crossDomain="true" offline="true"></e-data-manager>
<e-dropdownlist-fields value="GroupCode"></e-dropdownlist-fields>
</ejs-dropdownlist>
I then want to add an item using oF.sfControls.GroupCode.addItem(myObject)
It seems that the datasource is not ready to add new objects and I get the following error:
"Uncaught TypeError: Cannot read properties of undefined (reading 'push') at t.addItem"
How can I solve this situation?
Thanks!