Hello,
I want to catch the number of items in the list view. My listview is has remote data, so i want to catch this number in the listview javascript method actionComplete.
I found in the api documentation the property dataSource of the list view so i tried something like this
function onListComplete() {
const listView = document.getElementById("idList").ej2_instances[0];
alert(listView.dataSource);}
But I have no more information about the datasource object. I have tried dataSource.items.length and some others but I didn't succeed.
Can you provide me some code example to have this information?
My goal is to manage display an empty list message. Maybe you have a better way to do this?
Regards,
Laurent