OnClick1(args)
{
this.localObj.dataSource = [];
this.localObj.dataBind();
(this.localObj as any).ulElement = null;
(this.localObj as any).list = null;
} |
Can you please provide a similar solution for ASP .net core
Thanks
Hi Thashwin,
We have recreated the sample in the ASP.NET core platform and shared the sample link below for reference. Please refer to the code snippet and sample for more details.
<ejs-combobox id="games" placeholder="Select a game" popupHeight="220px"> </ejs-combobox> <hr />
<button onclick="LoadData()">Load Data</button> <button onclick="RemoveData()">Remove Data</button>
<script>
function LoadData() { document.getElementById('games').ej2_instances[0].dataSource = ['a','b','c']; } function RemoveData() { document.getElementById('games').ej2_instances[0].dataSource = []; } </script> |
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/CoreDynamicDataSource-245412455
Kindly try the above sample and let us know if this meets your requirement.
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.
Regards,
Udhaya Kumar D