Hi,
I am using a list view with remote data binding and a template:
<ejs-listview id="userList"
headerTitle="User List"
showHeader="false"
template="#listTemplate"
actionComplete="onUserDataBound">
<e-data-manager url="/ListView/initialData" adaptor="UrlAdaptor" offline="true"></e-data-manager>
<e-listview-fieldsettings text="UserName" id="UserId" />
</ejs-listview>
<script id="listTemplate" type="text/x-jsrender">
<div class="e-list-wrapper">
<span class='e-list-content'>${UserName}</span>
</div>
</script>
When debugging with a break point in the controller method, the method is called :
- Once if not using the template property of the listview
- twice if using the template property
- three times if setting offline property of the data manager to true.
So I have performance issue due to this behaviour. How can I manage to have only one controller call when using the template method?
Regards,
Laurent