Hello,
I am trying to empty the datasource of a combobox via javascript, but at the momento I try to do it I get the error Maximum call stack size exceeded.
I need to empty the datasource to reload it with a new one, but something is not working well with the code.
This is the sample code:
(Empty the DataSource)
document.getElementById("lstEmpenhos").ej2_instances[0].dataSource = [];
(Fill the DataSource with another content)
document.getElementById("lstEmpenhos").ej2_instances[0].dataSource = EmpenhoList;
After running that code, the dropdown arrow on the combobox turns into an spinning wheel and I get the error mentioned above.
Is there a solution for this problem?
Regards,
Alexandre